04-15-2015 06:37 AM
Hej all.
I'm trying to find a method so i can send calldata to an url whenever a call arrives or and agent changes state,
var currentState = user.getState();
if (currentState === states.NOT_READY) {
var currentReason = user.getReasonCodeLabel();
if (currentReason === "")
{ $("#userState").text(Config_txt.NOT_READY);
// SEND AGENTSTATUS DATA TO URL :
// http://<Microsoft IIS server IP>/getAgentData/data.aspx?user=user.GetExtension()&State=NotReady
}
else
{ $("#userState").text(currentReason);
// SEND AGENTSTATUS DATA TO URL :
// http://<Microsoft IIS server IP>/getAgentData/data.aspx?user=user.GetExtension()&State=NotReady&ReasonCode=<currentReason>
}
The <Microsoft IIS server IP> could also be the client PC that has an www server on a specific port. This is for PopUp when agent goes not ready due to RNA calls.
Have anyone tried this - I can get i to work, and I don't which javascript command i should use.
Best regards
Thomas
04-16-2015 09:50 AM
Calling a URL from a different URL domain than the Finesse website could bring up cross site scripting issues. You could use a technique like PJSON, etc.Calling a URL from a different URL domain than the Finesse website could bring up cross site scripting issues. You could use a technique like PJSON, etc.
04-16-2015 10:16 AM
That is what gadgets.io.makeRequest() is for.
04-19-2015 09:58 AM
Thanks. I will try that .-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide