When I make second request from WebChat console, it gives undefined error

widgets.min.js I have a javascript file that calls the file.
Its name is app.JS where I start the chat with chatstart with certain parameters.
I end the chat with a chat.JS file again.
But when I want to make a request over the console for the second time, I get an error ?
To make a second request, it is necessary to refresh the
page, but I do not want the page to be refreshed.

app.Js

var start= window.start= {

StartChat: (id,genesysuri,firstname,lastname) =>
{
start._startChatInner(id, genesysuri,firstname,lastname);
},

Chat.Close.JS

MyPlugin.command('WebChat.endChat');
MyPlugin.command('WebChat.close');

Browser Consol Screen;

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.