Hello,
We are creating a custom invite for LivePerson and we want to use the chat.
We've encountered an issue in the Javascript Monitor API. We are trying to catch an invite action fired by inviting a customer from the console. The issue is that the invite action is captured only after the page is refreshed and not after it's fired.
Configuration:
//-- configuration object for the Monitor Tag var lpMTagConfig = { 'lpServer' : 'server.iad.liveperson.net', 'lpNumber' : '********', 'lpProtocol' : (document.location.toString().indexOf('https:')==0) ? 'https' : 'http' };
Invite metod:
//-- catch the invite event and handle it with our custom invite lpMTagConfig.inviteChatStart = function(objName) { //-- the custom method that makes the custom invite pop-up app.controller.inviteAction(); };
Can you please point out what is the solution for getting an asynchronous invite?
Thank you in advance.