Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop-up warning message when an agent ON CALL attempts to logout #872

Open
AlankritBamrara opened this issue May 10, 2024 · 3 comments
Open

Comments

@AlankritBamrara
Copy link

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?

@SaqibOctave
Copy link

SaqibOctave commented May 10, 2024

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

@AlankritBamrara
Copy link
Author

@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.

@vpogudina
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants