cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
579
Views
0
Helpful
0
Comments
kalim
Level 1
Level 1

Need some help with a gadget development.  Have a gadget built however it triggers when a call comes to an agent and immediately after when the agent goes into "RESERVED" state.  I need to pop a window that is working however the pop happens before the agent is able to answer the call.  The auto answer is turned off.  I like to not run any API code to perform the pop before agent is in "TALKING" state.  Need some direction and sample code if possible to be able to accomplish this. 

 

Here is how the handle user load is setup:

handleUserLoad = function (userevent) {
dialogs = user.getDialogs( {
onCollectionAdd : handleNewDialog,
onCollectionDelete : handleEndDialog
});
// Set the text on the gadget to be something default
$("#responseBody").text(glbDisplayTxt+"Ready");
gadgets.window.adjustHeight();
},

/**
* Handler for all User updates
*/
handleUserChange = function(userevent) {
};

 

 

Thank you.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: