cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Finesse Gadget - Event Handling

301
Views
0
Helpful
0
Comments
Beginner

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.