getIframeUri

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("glassix-agent-iframe")[0];
    iframe.src = uri;
});

🚧

Note:

You can't use the destroy and attach methods in with this method.

destroy

agentClient.destroy();

attach

This method is called automatically after the script is 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);