O aplicativo do evolux phone vai disparar alguns eventos que podem ser capturados por uma aplicação no SalesForce.
Exemplo de uso:
Code Block |
---|
|
addEventListener('message', event => {
if (event.data.eventName === 'softphoneCallInvited') {
console.log('softphoneCallInvitedreceived from Evolux', event.data.payload);
}
}); |
Eventos:
softphoneCallInvited
Exemplo de payload:
Info |
---|
Informações adicionais capturadas por URA Inteligentes (ex.: número de CPF) podem ser recuperadas no campo "extra". |
...
Code Block |
---|
|
{
"id": "8eb4d68e-722a-11eb-914b-d185dd1424c7",
"uuid": "8dc216ba-722a-11eb-911a-d185dd1424c7",
"recordingUUID": "8dc216ba-722a-11eb-911a-d185dd1424c7",
"originationLegUuid": "8dc216ba-722a-11eb-911a-d185dd1424c7",
"direction": "inbound",
"hangupCause": "NORMAL CLEARING",
"startTime": "2021-02-18T20:47:47.476Z",
"answerTime": "2021-02-18T20:47:56.105Z",
"endTime": "2021-02-18T20:47:58.470Z",
"from": {
"name": "Suporte 601",
"number": "601"
},
"to": {
"name": "700",
"number": "60916f51-c6f5-a853-3651-a8a456064080"
},
"agent": {
"id": 1,
"name": "João",
"extension": 700,
"login": "joao",
"email": ""
},
"extra": {
"evolux_cc_member_session_uuid": "8dc216ba-722a-11eb-911a-d185dd1424c7",
"evolux_cc_queue_number": "4000",
"evolux_cc_queue_slug": "nordestao"
},
"queue": {
"slug": "suporte",
"number": "4000"
}
} |
agentStartPause
Exemplo de payload:
Code Block |
---|
|
{
"agentId": 1,
"agent": {
"id": 1,
"name": "João",
"extension": 700,
"login": "joao",
"email": ""
},
"pause": {
"reason": "Lanche",
"productive": false,
"timeStart": "2021-02-18T20:51:54.866913+00:00",
"timeEnd": null,
"maxDuration": null
}
} |
agentChangePause
Exemplo de payload:
Code Block |
---|
|
{
"agentId": 1,
"agent": {
"id": 1,
"name": "João",
"extension": 700,
"login": "joao",
"email": ""
},
"pause": {
"reason": "Reunião",
"productive": true,
"timeStart": "2021-02-18T20:52:35.366557+00:00",
"timeEnd": null,
"maxDuration": null
}
} |
...