Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

O aplicativo do evolux phone vai disparar alguns eventos que podem ser capturados por uma aplicação no SalesForce.

Exemplo de uso:

Code Block
languagejs
titleExemplo
addEventListener('message', event => {
   if (event.data.eventName === 'softphoneCallInvited') {
        console.log('softphoneCallInvited', 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
languagejs
{
  agent: {id: 1, name: "Teste", extension: 612},
  answerTime: null,
  direction: "outbound",
  endTime: null,
  extra: {cpf: "09536679433"},
  from: {name: "612", number: "612"},
  hangupCause: null,
  id: "09a4482a-a81b-4a69-6fa1-114327490832",
  originationLegUuid: "09a4482a-a81b-4a69-6fa1-114327490832",
  queue: {slug: "pao2", number: "4002"},
  startTime: "2019-04-11T19:38:41.046Z",
  to: {name: "601", number: "601"},
  uuid: "09a4482a-a81b-4a69-6fa1-114327490832"
}

...

Code Block
languagejs
{
  agent: {id: 1, name: "Teste", extension: 612},
  answerTime: "2019-04-11T19:38:44.101Z",
  direction: "outbound",
  endTime: "2019-04-11T19:42:40.357Z",
  extra: {cpf: "09536679433"},
  from: {name: "612", number: "612"},
  hangupCause: "NORMAL CLEARING",
  id: "09a4482a-a81b-4a69-6fa1-114327490832",
  originationLegUuid: "09a4482a-a81b-4a69-6fa1-114327490832",
  queue: {slug: "pao2", number: "4002"},
  startTime: "2019-04-11T19:38:41.046Z",
  to: {name: "601", number: "601"},
  uuid: "09a4482a-a81b-4a69-6fa1-114327490832"
}

agentStartPause

Exemplo de payload:

Code Block
languagejs
{
  agentId: 1,
  pause: {
    maxDuration: null,
    productive: true,
    reason: "Backoffice",
    timeStart: "2019-04-03T23:42:01.096056+00:00",
  }
}

agentChangePause

Exemplo de payload:

Code Block
languagejs
{
  agentId: 1,
    pause: {
    maxDuration: 5,
    productive: true,
    reason: "10 minutos/NR17",
    timeStart: "2019-04-03T23:42:04.885629+00:00"
  }}

...