getframUri

Returns a promise with the uri to set as the iframe source. Use this method if you wish to add the chat in your own iframe.

agentClient.getIframeUri().then(function (uri) {
    var iframe = document.getElementsByTagName("iframe");
    iframe.src = uri;
});

destroy

agentClient.destroy();

attach

This method is called automatically after the script was loaded, there is no need to call it explicitly.

agentClient.attach();

logout

This method will logout the current user from the system.

agentClient.logout();

setCurrentTicket

This method will set the current ticket by the ticket id and department id.

agentClient.setCurrentTicket(ticketId, departmentId);