Channels | Agents | BPs | Campaigns | Callbacks | Organization |
---|---|---|---|---|---|
Client initializes by loading configuration data from XTIUM server:
Configuration data is used to build the user interface:
User selections trigger subscription and real-time data flow:
/ReferenceData/action/GetConfiguration
- Get organization data and counters/Campaign
- Get available campaigns/Agent/action/Current
- Get current user agent info/Statistics/action/SubscribeForCounters
- Create counter subscriptions/Statistics/action/UnSubscribeFromCounters
- Remove subscriptions/Agent/action/KeepAlive
- Maintain session with instanceId/RealTimeEventsSockets/
- WebSocket endpoint for real-time eventsHandlerId_CounterTypeId_DimensionId
{
"AgentName": "Agent01_I",
"AgentId": "ca8683ed-cb2d-4ab0-8835-db5b9831e059",
"AgentBPAnsweredCalls": {
"Value": 1,
"DimensionsValues": [
{"Name": "Telephony", "Value": 0},
{"Name": "Chat", "Value": 1},
{"Name": "E-mail", "Value": 0}
]
}
}
ca8683ed-cb2d-4ab0-8835-db5b9831e059_AgentBPAnsweredCalls_Telephony
→ <td id="ca8683ed-cb2d-4ab0-8835-db5b9831e059_AgentBPAnsweredCalls_Telephony">0</td>
ca8683ed-cb2d-4ab0-8835-db5b9831e059_AgentBPAnsweredCalls_Chat
→ <td id="ca8683ed-cb2d-4ab0-8835-db5b9831e059_AgentBPAnsweredCalls_Chat">1</td>
ca8683ed-cb2d-4ab0-8835-db5b9831e059_AgentBPAnsweredCalls_E-mail
→ <td id="ca8683ed-cb2d-4ab0-8835-db5b9831e059_AgentBPAnsweredCalls_E-mail">0</td>
Client calls getConfiguration() and getCampaigns() to load available data
buildCountersTree() creates the side panel, addHandlersList() populates handlers
User selects counters from tree and handlers from top panel
callSubscribe() sends HandlerCounterPairs to SubscribeForCounters endpoint
Connects to RealTimeEventsSockets with Basic auth and organization key
COUNTER_UPDATE_EVENT handlers update subscription records table
{
"clientSubscriptionId": "fd7c5b2e-624b-4b99-875a-0b618b0dff11",
"handlerCounterPairs": [
{
"HandlerId": "a120ae78-1ea0-41ac-9135-e9e907c24e04",
"CounterTypeId": "45b331c6-e5de-44e5-a16c-d2d73d0ccf4f"
},
{
"HandlerId": "a120ae78-1ea0-41ac-9135-e9e907c24e04",
"CounterTypeId": "45b331c6-e5de-44e5-a16c-d2d73d0ccf4f",
"DimensionId": "63680cf3-2864-40d8-83c7-1969770afd0f"
}
]
}
{
"type": "REPORTED_EVENT",
"eventType": "COUNTER_UPDATE_EVENT",
"clientSubscriptionId": "fd7c5b2e-624b-4b99-875a-0b618b0dff11",
"counters": [
{
"handlerId": "a120ae78-1ea0-41ac-9135-e9e907c24e04",
"counterTypeId": "45b331c6-e5de-44e5-a16c-d2d73d0ccf4f",
"counterTypeName": "BusinessProcessTotalInteractions",
"dimensionId": null,
"value": "5",
"alert": "None",
"secondaryValue": null
}
],
"timestamp": "2024-07-02T12:16:16.033+03:00",
"organizationId": "f0489a6d-2514-41af-b94b-0984dc213925"
}
{ws:|wss:}//{server}/RealTimeEventsSockets/