Um objeto com o status "assigned" é enviado quando o analista atribui uma rota a um operador.
{
"current": {
"_id": "5eab03a8c9732214e9b4bcaa",
"entity": {
"id": "5eab03a8c9732214e9b4bca8",
"status": "assigned",
"type": "job"
},
"eventType": "action",
"action": "assign",
"values": {},
"sender":{
"firstName": "Operador",
"lastName": "ou Analista",
"username": "operador",
"updated": "2020-02-21T18:12:08.340Z",
"created": "2020-02-21T18:12:08.340Z",
"authentication_type": "email",
"email": "[email protected]",
"phone": "91111-1111",
"status": {
"position": {
"date": "2020-02-21T18:12:08.340Z",
"lat":-23.6179656,
"lng":-46.6378011,
},
"last_login": {
"date": "2021-05-17T19:45:12.289Z",
"device": {
"_id": "60a2c7c88366d12584f50dce"
}
}
},
"company_bound": "none",
"_id": "5e501d78be3cc67dfe61e8b6",
"displayName": "Operador ou Analista",
"__v": 0,
"id": "5e501d78be3cc67dfe61e8b6"
}
"created": "2020-04-30T16:58:16.168Z",
"date": "2020-04-30T16:58:16.168Z",
"__v": 0,
"job": {
"id": "5eab03a8c9732214e9b4bca8",
"due_date": "2020-04-30T16:58:16.129Z",
"routing": "5eab0397c9732214e9b4bc8e",
"route": {
"id": "5eab039ac9732214e9b4bc9b",
"name": "Rota 1"
},
"operator": {
"displayName": "Josué da Silva",
"documentNumber": "12345667899",
"license_plate": "ABC-1234",
"phone": [
"119999-0909"
]
}
},
"company": {
"id": "5e416e0e0c50b02c6183c777",
"name": "Sua Empresa",
"company_info": {
"logo": "",
"domain": "routeasy"
}
},
"site":{
"id": "5e416e0e0c50b02c6183c799",
"code": "Código Filial",
"name": "Nome Filial"
}
},
"previous": null
}