Skip to content

onLogout()

Notifies Vault when an agent has logged out and sets the AgentStatus.

NameTypeDescription
agentStatus
optional
AgentStatusThe user's telephony status.
Allowed values are AgentStatus.AVAILABLE and AgentStatus.OFFLINE.
If not provided, the default is AgentStatus.OFFLINE.
import { omniconnectEvent, AgentStatus} from "./vault-medical-omniconnect-25.1.2-release12649.js";


// Deauthenticate user with OFFLINE agent status
function deauthenticateUserWithOfflineAgentStatus() {
    omniconnectEvent.onLogout()
}


// Deauthenticate user with AVAILABLE agent status
function deauthenticateUserWithAvailableAgentStatus() {
    omniconnectEvent.onLogout(AgentStatus.AVAILABLE)
}