AnsweredAssumed Answered

Watch agent state change - need Bosh/Xmpp?

Question asked by NeilClancy on Feb 17, 2016
Latest reply on Mar 1, 2016 by dekwan

Hi all,

 

I had a gadget set up to based on one of the sample gadgets - when the call ends, the function handleEndDialog calls some arbitrary js code to run. The issue is that handleEndDialog does not trigger until wrap up is over and agent transitions to Ready or Not Ready. At this point it updated the dialog and handleEndDialog runs.

 

This is too late, I need to trigger the code when the agent transitions from Talking to Work/Wrapup state.

 

We decided to investigate the possibility of using the Notification Service and a js eventlistener to watch for the state change and trigger with that.

 

Can someone recommend a lightweight library to use for this purpose, OR if there is a way to achieve what I am trying to do without BOSH? Also, we are hoping to use finesse with HTTP and not HTTPS - the developer guide says that BOSH must be done over HTTPS, will this be a problem?

 

Any help much appreciated, thanks

Outcomes