You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a custom CCP and need to add a functionality which prompts a warning message to an agent that attempts to logout while on call, something that prompts the agent to end the call/chat first before logging out. The TERMINATED event allows actions after logout however the functionality that I require needs to intercept the logout action. Is there any event I can subscribe to for implementing this or any customization that can allow this?
The text was updated successfully, but these errors were encountered:
you can check getAgentConnection(), It will gives you the array of Agent connections if he has an open contact, you can check the status of the contact and implement your logic
@SaqibOctave thanks for the reply. I can call the getAgentConnection() event to retrieve open contacts but how to intercept when agent clicks the Logout button because that action takes place inside embedded CCP.
Can you clarify the scenario, do you use custom ccp with native ccp visible and embedded? What are the steps to reproduce the issue? When I clicked to logout from the settings page in ccp - it sets 'next status Offline', gives me browser warning if I want to refresh the page, and I'm staying on the call.
I am using a custom CCP and need to add a functionality which prompts a warning message to an agent that attempts to logout while on call, something that prompts the agent to end the call/chat first before logging out. The TERMINATED event allows actions after logout however the functionality that I require needs to intercept the logout action. Is there any event I can subscribe to for implementing this or any customization that can allow this?
The text was updated successfully, but these errors were encountered: