The events are actions fired from some method of the integration or directly from the agent such as the change of status etc.
To send the method DOM we will take as an example the event onLogin wich have to be passed trough the method createTrigger.trigger("onLogin"); and it acts as a parameter that should pass just like we want the DOM to read it.
function onLogin() {
console.log('onLogin');
}
When the event login fires on success :
function onLogin() {
console.log('onLogin');
alert("Inicio de session correcto")
}
When we execute the method, the agent receives the event onLogin o remoteLoginError
onLogOut
When the event closeSession fires on success.
function onLogOut() {
console.log('onLogOut');
}