{
"response": {
"resource": "agent",
"command": "get_status",
"status": "ok",
"agents": [
{
"name": "jose.silva",
"dt_login": "2023-10-27T10:00:00Z",
"state": "ready_service",
"branch": "1001",
"dt_last_change_state": "2023-10-27T10:15:00Z",
"dt_last_statistics_reset": "2023-10-27T09:00:00Z",
"time_by_state": {
"logged_out": 0,
"ready_free": 600,
"ready_service": 300,
"ready_private": 0,
"pre_pause_service": 120,
"pre_pause_private": 0,
"pauses": []
},
"calls": [
{
"media_type": "voice",
"interlocutor": "5511987654321",
"service": "Atendimento ao Cliente",
"call_id": "1234567890",
"duration": 180,
"call_state": "calling",
"call_type": "inbound",
"call_source": "external",
"consultation_call_id": null,
"entry_address": null,
"associated_data": null,
"classification_time": 120,
"after_call_work_time": 60,
"expected_handle_time": 240,
"permissions": [
"consult",
"transfer"
]
}
],
"devices": [
{
"media_type": "voice",
"quantity": 1,
"handle_mode": "branch"
},
{
"media_type": "chat",
"quantity": 2,
"handle_mode": "auto"
}
],
"contingency": false
}
]
}
}