Hook emitido quando o atendente termina o preenchimento dos dados da chamada de multi atendimento (anotações, tabulação, questionário), quando ele clica em "Salvar" esse hook é disparado.
📨 Payload de Dados incompletos:
{
"content": {
"id": "68090921d87bdc8ce9bc6808",
"invite": {
"id": "68090922d87bdc8ce9bc6844",
"token": "3d3d65e4-7249-42ad-a710-7a291853b841"
},
"queue": {
"id": "6809094e576110f669e20329"
},
"department": {
"id": "67c9de0fc2e6b532a5ae296b"
},
"customer": {
"id": "6809094b78dbfdf0a728ca09"
},
"attendant": {
"id": "67dc550dec7027a4a852781e"
},
"call": {
"id": "680909523767e3afa0274e7a"
}
},
"hookType": "attendant_closed_issue",
"hookDescription": "Atendente fechou a solicitação",
"timestamp": "2025-04-23T15:38:58.346Z"
}
📨 Payload com Dados completos:
{
"content": {
"id": "68090a14c44d41ed6a30baeb",
"initialDate": "2025-04-23T15:41:08.510Z",
"expirationDate": "2025-04-23T15:41:35.266Z",
"duration": 27,
"ticket": "25042332620347",
"recorded": true,
"recordingDeleted": false,
"recordingStatus": "recording-pending",
"tags": [
{
"_id": "67ed7ffadb47e1a27b0d3501",
"id": "67ed7ffadb47e1a27b0d3501",
"label": "Aprovado",
"color": "#85cb3c",
"description": "Venda concluida",
"icon": "check",
"type": "primary",
"subTags": [
"67ed8056db47e1a27b0dd1e9"
],
"settings": {
"minSubTags": 1,
"maxSubTags": 1,
"_id": "67ed8043db47e1a27b0dab8e"
}
},
{
"_id": "67ed8056db47e1a27b0dd1e9",
"id": "67ed8056db47e1a27b0dd1e9",
"label": "Confirmado",
"color": "#137cd0",
"description": "Venda concluida",
"icon": "",
"type": "sub-tag",
"parentTag": "67ed7ffadb47e1a27b0d3501",
"subTags": []
}
],
"textChat": [],
"department": {
"id": "67c9de0fc2e6b532a5ae296b",
"name": "duda",
"identifier": "testescs.duda"
},
"queue": {
"id": "68090a10576110f669e362b7",
"logs": [
{
"name": "done",
"timestamp": "2025-04-23T15:41:08.481Z",
"detail": {
"message": "User moved to call by attendant 67dc550dec7027a4a852781e",
"code": "shift"
}
},
{
"name": "routed-to-attendant",
"timestamp": "2025-04-23T15:41:04.780Z",
"detail": {
"message": "Call routed to attendant with id: 67dc550dec7027a4a852781e",
"code": "routed-to-attendant"
}
},
{
"name": "enqueued",
"timestamp": "2025-04-23T15:41:04.680Z",
"detail": {
"message": "User enqueued",
"code": "push"
}
}
],
"origin": "https://nuvidio.com/testescs.duda?token=3d3d65e4-7249-42ad-a710-7a291853b841&push=true",
"device": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36",
"status": {
"name": "done",
"detail": {
"message": "User moved to call by attendant 67dc550dec7027a4a852781e",
"code": "shift",
"_id": "68090a14c44d41ed6a30bacc"
},
"timestamp": "2025-04-23T15:41:08.481Z",
"_id": "68090a14c44d41ed6a30bacb"
},
"enqueuedAt": "2025-04-23T15:41:04.680Z",
"unqueuedAt": "2025-04-23T15:41:08.481Z",
"transference": {
"to": {}
},
"createdAt": "2025-04-23T15:41:04.685Z"
},
"customer": {
"name": "Duda",
"tel": "",
"email": "[email protected]",
"id": "6809094b78dbfdf0a728ca09",
"connectedAt": "2025-04-23T15:41:10.194Z",
"status": null
},
"customerData": {
"pdf": {
"label": "PDF",
"value": "https://nuvidio-teste.s3.sa-east-1.amazonaws.com/5f597ed39e196b8e24fde0ea/5b24f96c-86f0-4429-80d4-d2377fc46e1d.pdf",
"copiedFromQueue": true,
"sections": [],
"type": "pdf"
}
},
"invite": {
"id": "68090922d87bdc8ce9bc6844",
"token": "3d3d65e4-7249-42ad-a710-7a291853b841",
"link": "https://nuvidio.com/testescs.duda?token=3d3d65e4-7249-42ad-a710-7a291853b841&push=true",
"shortLink": "https://nuvidio.me/xts9gf"
},
"attendant": {
"name": "Duda",
"id": "67dc550dec7027a4a852781e",
"email": "[email protected]",
"connectedAt": "2025-04-23T15:41:09.381Z"
},
"issues": [
{
"_id": "68090921d87bdc8ce9bc6807",
"id": "68090921d87bdc8ce9bc6807",
"key": "15f503fe2123",
"name": "Atiabia 1",
"tags": [
{
"_id": "67ed7ffadb47e1a27b0d3501",
"id": "67ed7ffadb47e1a27b0d3501",
"label": "Aprovado",
"color": "#85cb3c",
"description": "Venda concluida",
"icon": "check",
"type": "primary",
"subTags": [
"67ed8056db47e1a27b0dd1e9"
],
"settings": {
"minSubTags": 1,
"maxSubTags": 1,
"_id": "67ed8043db47e1a27b0dab8e"
}
},
{
"_id": "67ed8056db47e1a27b0dd1e9",
"id": "67ed8056db47e1a27b0dd1e9",
"label": "Confirmado",
"color": "#137cd0",
"description": "Venda concluida",
"icon": "",
"type": "sub-tag",
"parentTag": "67ed7ffadb47e1a27b0d3501",
"subTags": []
}
],
"notes": "<p>teste webhook</p>",
"data": [
{
"label": "adesao",
"value": "1asd6a1sd6565asd"
},
{
"label": "Imagem",
"value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII",
"type": "image",
"private": true
},
{
"label": "Imagem",
"value": "uuid aleatório",
"type": "pdf",
"private": true
},
{
"label": "PDF",
"value": "https://nuvidio-teste.s3.sa-east-1.amazonaws.com/5f597ed39e196b8e24fde0ea/5b24f96c-86f0-4429-80d4-d2377fc46e1d.pdf",
"type": "pdf",
"private": true
}
]
},
{
"_id": "68090921d87bdc8ce9bc6808",
"id": "68090921d87bdc8ce9bc6808",
"key": "15f503ff2123",
"name": "Atiabia 2",
"tags": [
{
"_id": "67ed7ffadb47e1a27b0d3501",
"id": "67ed7ffadb47e1a27b0d3501",
"label": "Aprovado",
"color": "#85cb3c",
"description": "Venda concluida",
"icon": "check",
"type": "primary",
"subTags": [
"67ed8056db47e1a27b0dd1e9"
],
"settings": {
"minSubTags": 1,
"maxSubTags": 1,
"_id": "67ed8043db47e1a27b0dab8e"
}
},
{
"_id": "67ed8056db47e1a27b0dd1e9",
"id": "67ed8056db47e1a27b0dd1e9",
"label": "Confirmado",
"color": "#137cd0",
"description": "Venda concluida",
"icon": "",
"type": "sub-tag",
"parentTag": "67ed7ffadb47e1a27b0d3501",
"subTags": []
}
],
"notes": "<p>ss</p>",
"data": [
{
"label": "Motocicletas",
"value": "Kawasaki Z650 INSPIRA"
},
{
"label": "Imagem",
"value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII",
"type": "image",
"private": true
},
{
"label": "123123",
"value": "12312312312"
}
]
},
{
"_id": "68090921d87bdc8ce9bc6809",
"id": "68090921d87bdc8ce9bc6809",
"key": "something",
"name": "Atiabia 3",
"tags": [
{
"_id": "67ed7ffadb47e1a27b0d3501",
"id": "67ed7ffadb47e1a27b0d3501",
"label": "Aprovado",
"color": "#85cb3c",
"description": "Venda concluida",
"icon": "check",
"type": "primary",
"subTags": [
"67ed8056db47e1a27b0dd1e9"
],
"settings": {
"minSubTags": 1,
"maxSubTags": 1,
"_id": "67ed8043db47e1a27b0dab8e"
}
},
{
"_id": "67ed8056db47e1a27b0dd1e9",
"id": "67ed8056db47e1a27b0dd1e9",
"label": "Confirmado",
"color": "#137cd0",
"description": "Venda concluida",
"icon": "",
"type": "sub-tag",
"parentTag": "67ed7ffadb47e1a27b0d3501",
"subTags": []
}
],
"notes": "<p>novo teste</p>",
"data": []
}
],
"logs": [
{
"name": "disconnected",
"client": "Duda",
"timestamp": "2025-04-23T15:41:35.725Z",
"detail": "User disconnected from room",
"clientRole": "customer",
"metadata": "client namespace disconnect"
},
{
"name": "finalized_by_attendant",
"client": "Duda",
"clientRole": "attendant",
"timestamp": "2025-04-23T15:41:35.266Z",
"detail": "Finalize call with success"
},
{
"name": "disconnected",
"client": "Duda",
"timestamp": "2025-04-23T15:41:35.339Z",
"detail": "User disconnected from room",
"clientRole": "attendant",
"metadata": "client namespace disconnect"
},
{
"name": "disabled_mic",
"client": "Duda",
"timestamp": "2025-04-23T15:41:25.611Z",
"detail": "User has disabled microfone",
"clientRole": "customer"
},
{
"name": "enabled_mic",
"client": "Duda",
"timestamp": "2025-04-23T15:41:23.331Z",
"detail": "User has enabled microfone",
"clientRole": "customer"
},
{
"name": "connected",
"client": "Duda",
"timestamp": "2025-04-23T15:41:21.887Z",
"detail": "User joining on room",
"clientRole": "customer",
"metadata": null
},
{
"name": "disabled_mic",
"client": "Duda",
"timestamp": "2025-04-23T15:41:19.616Z",
"detail": "User has disabled microfone",
"clientRole": "attendant"
},
{
"name": "enabled_mic",
"client": "Duda",
"timestamp": "2025-04-23T15:41:15.330Z",
"detail": "User has enabled microfone",
"clientRole": "attendant"
},
{
"name": "connected",
"client": "Duda",
"timestamp": "2025-04-23T15:41:14.039Z",
"detail": "User joining on room",
"clientRole": "attendant",
"metadata": null
},
{
"timestamp": "2025-04-23T15:41:08.523Z",
"client": "system",
"detail": "System started record",
"name": "started_record",
"clientRole": "system"
}
],
"questionnaire": [],
"issue": {
"_id": "68090921d87bdc8ce9bc6809",
"id": "68090921d87bdc8ce9bc6809",
"key": "something",
"name": "Atiabia 3",
"tags": [
{
"_id": "67ed7ffadb47e1a27b0d3501",
"id": "67ed7ffadb47e1a27b0d3501",
"label": "Aprovado",
"color": "#85cb3c",
"description": "Venda concluida",
"icon": "check",
"type": "primary",
"subTags": [
"67ed8056db47e1a27b0dd1e9"
],
"settings": {
"minSubTags": 1,
"maxSubTags": 1,
"_id": "67ed8043db47e1a27b0dab8e"
}
},
{
"_id": "67ed8056db47e1a27b0dd1e9",
"id": "67ed8056db47e1a27b0dd1e9",
"label": "Confirmado",
"color": "#137cd0",
"description": "Venda concluida",
"icon": "",
"type": "sub-tag",
"parentTag": "67ed7ffadb47e1a27b0d3501",
"subTags": []
}
],
"data": [],
"notes": "<p>novo teste</p>"
}
},
"hookType": "attendant_closed_issue",
"hookDescription": "Atendente fechou a solicitação",
"timestamp": "2025-04-23T15:41:46.625Z"
}