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
{
  "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": null,
  "startTime": "2021-02-18T20:47:47.476Z",
  "answerTime": null,
  "endTime": null,
  "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": "suporte"
  },
  "queue": {
    "slug": "suporte",
    "number": "4000"
  }
}

...

Code Block
languagejs
{
  "id": "7b684fba-722b-11eb-915c-d185dd1424c7",
  "uuid": "7b685078-722b-11eb-915d-d185dd1424c7",
  "recordingUUID": "8dc216ba-722a-11eb-911a-d185dd1424c7",
  "originationLegUuid": "7b685078-722b-11eb-915d-d185dd1424c7",
  "direction": "inbound",
  "hangupCause": null,
  "startTime": "2021-02-18T20:54:30.244Z",
  "answerTime": "2021-02-18T20:54:35.218Z",
  "endTime": null,
  "from": {
    "name": "Campanha de Cobrança Anual",
    "number": "601"
  },
  "to": {
    "name": "Campanha de Cobrança Anual",
    "number": "601"
  },
  "agent": {
    "id": 1,
    "name": "João",
    "extension": 700,
    "login": "joao",
    "email": ""
  },
  "extra": {
    "campaign_id": "1",
    "evolux_cc_agent": "joao",
    "subscriber_id": "1",
    "subscriber_number": "601",
    "subscriber_name": "Maria",
    "campaign_slug": "campanha_de_cobranca_anual",
    "dialer_subscriber_origination_uuid": "7b685078-722b-11eb-915d-d185dd1424c7",
    "subscriber_external_id": "000120"
  },
  "campaign": {
    "id": "1",
    "slug": "campanha_de_cobranca_anual"
  },
  "subscriber": {
    "number": "601",
    "name": "Maria",
    "externalId": "000120"
  }
}

...

Code Block
languagejs
{
  "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": null,
  "startTime": "2021-02-18T20:47:47.476Z",
  "answerTime": "2021-02-18T20:47:56.105Z",
  "endTime": null,
  "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"
  }
}

...

Code Block
languagejs
{
  "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
languagejs
{
  "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
languagejs
{
  "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
  }
}

...