01-16-2023 10:09 PM - edited 01-17-2023 04:59 PM
Hi,
Can it be possible Customer premise CRM payment page should call Pause Recording Task API as long as they hit payment.
The challenge would be how CRM knows taskid, which is required to call Pause Recording Task API. And this process should be out agent's control (auto-controlled from system) means once pay button clicked from CRM, call recording paused through API at agent desktop and resumed once payment is finished.
Both CRM page & Agent desktop would be on same PC but can't be sure on the same browser.
Looking forward for your reply.
Solved! Go to Solution.
01-23-2023 03:36 PM
01-18-2023 03:42 PM - edited 01-18-2023 03:46 PM
For same browser tab use case - e.g CRM embedded inside the Desktop app - you can have the event triggered (pause Recording) whenever on focus is triggered on the payment tab.
This is for embedded javascript inside the desktop to listen for events when the desktop app is iFramed. Hence the widget code can be used. The method works for the active task on the desktop.\
See: Desktop.agentContact.pauseRecording()
https://developer.webex-cx.com/documentation/guides/desktop
And see the sample code called call control widget -
Now coming to the usecase for thick client CRM (non-browser) - your app needs to be able to subscribe to websocket events from the desktop. Using the websocket API, your app will get task details when the phone call is presented to the agent. You can then initiate the REST API call to pause the recording. It is indeed for the logged in session - but your thick client can independently subscribe for the websocket events. You have to have the agent login to the connector application via SSO or use the token from the browser if you are running desktop.wxcc-us1.cisco.com in parallel (see session storage: accessToken) to then register the websocket connection to receive call events. This is similar to what you would have done for Finesse with XMPP events.
Subscribe for Notifications: https://developer.webex-cx.com/documentation/notification/v1/subscribe-notification (Per agent login)
Events:
Thanks & Regards,
Arunabh.
01-18-2023 06:02 PM
Hi Arunabh,
Thanks for your reply.
Can I ask any code available to subscribe to websocket events from the desktop , I never used XMPP code.
Looking forward for some sample code.
Thanks
Dimple
01-23-2023 03:26 PM
Hi Arunabh,
Is there any event / Key / Item agent desktop sending to local / session storage to hold taskId ?
Thanks
Dimple Saggi
01-23-2023 03:36 PM
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