Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_id |
| Internal object identifier | ||||||||||||
id |
| Chat unique identifier | ||||||||||||
servid |
| Service unique identifier | ||||||||||||
widgetid | serv_name | beginTime | endTime | title | lang | userID | users |
| Widget unique identifier | |||||
serv_name |
| Service name | ||||||||||||
beginTime |
| Chat start time | ||||||||||||
endTime |
| Chat end time | ||||||||||||
title |
| Chat title | ||||||||||||
lang |
| Chat language | ||||||||||||
userID |
| User unique identifier | ||||||||||||
users |
| Hash of the partecipants to the chat | ||||||||||||
id [user object] |
| User unique identifier | ||||||||||||
nickname |
| agent/customer nickname | ||||||||||||
beginTime |
| Chat start time | ||||||||||||
endTime |
| Chat end time | ||||||||||||
isOnline |
| Identifies if a chat is currently active | ||||||||||||
userAgent |
| Browser user agent | ||||||||||||
firstUri |
| Web page url | ||||||||||||
firstTitle |
| Web page title | ||||||||||||
channel |
| Identifies chat channel. Can assume one of the following values: “WEB” “WHATSAPP” | ||||||||||||
firstIP |
| Agent/customer IP | ||||||||||||
dataCollections |
| Hash containing Data Collection Object | ||||||||||||
callData |
| Hash containing call data variables and values |
Example
Code Block | ||
---|---|---|
| ||
{ "_id":"5d8a2b2f4f310334503443ba", "id":"CHAT_4ad0a181-f2e6-44d8-887b-6ff99169e2da", "servid":"LiveChat_Popup", "widgetid":"classic_popup", "serv_name":"serviziocablato", "beginTime":1569335948190.0, "endTime":1569336110396.0, "title":"", "lang":"", "userID":"USER_c8e1eb84-60d3-4d69-b10b-96364845023e", "users":{ "USER_c8e1eb84-60d3-4d69-b10b-96364845023e":{ "id":"USER_c8e1eb84-60d3-4d69-b10b-96364845023e", "nickname":"Gabry", "isAgent":false, "beginTime":1569335948190.0, "endTime":1569336110396.0, "isOnline":false, "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36", "firstUri":"http://localhost:3001/domain/test.html", "firstTitle":"LiveChat - Test Page", "channel":"web", "firstIP":"::1" }, "USER_gverde1@acd#_#enghouse#_#com":{ "id":"USER_gverde1@acd.enghouse.com", "nickname":"Gabriele Verde", "isAgent":true, "beginTime":1569335949554.0, "endTime":1569336110396.0, "isOnline":false, "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36", "firstUri":"http://localhost:3003/AD/AD.html", "firstTitle":"AgentDesktop - Enghouse Interactive", "channel":"web", "firstIP":"::ffff:127.0.0.1" } }, "dataCollections":{ "67990d2d-5d35-4d7d-93ac-df3d9edb636d":{ "datacollection":[ { "_id":"5c6e700404445e26d8dbeee4", "dc_type":"nickname", "label":"Nickname", "isMandatory":true, "isVisibleAgent":true, "isVisibleCustomer":true, "isEditable":true, "custom_regexp":"", "value":"Gabry", "name":"nickname", "mode":"manual" }, { "_id":"5c6e700404445e26d8dbeee3", "dc_type":"name", "label":"Name", "isMandatory":false, "isVisibleAgent":true, "isVisibleCustomer":true, "isEditable":true, "custom_regexp":"", "value":"", "name":"name", "mode":"manual" }, { "_id":"5c6e700404445e26d8dbeee2", "dc_type":"surname", "label":"surname", "isMandatory":false, "isVisibleAgent":true, "isVisibleCustomer":true, "isEditable":true, "custom_regexp":"", "value":"", "name":"surname", "mode":"manual" } ], "_id":"5c6e700404445e26d8dbeee1", "id":"67990d2d-5d35-4d7d-93ac-df3d9edb636d", "title":"Anagrafica #1", "dc_mode":"chat", "next":"", "__v":0 }, "fc0450c8-4b2c-42b3-b8c9-04b672ca4a90":{ "datacollection":[ { "_id":"5c6e700404445e26d8dbeee8", "dc_type":"email", "label":"Email", "isMandatory":true, "isVisibleAgent":true, "isVisibleCustomer":true, "isEditable":true, "custom_regexp":"", "value":"Gabriele.Verde@enghouse.com", "name":"email", "mode":"manual" }, { "_id":"5c6e700404445e26d8dbeee7", "dc_type":"phone", "label":"Phone number", "isMandatory":false, "isVisibleAgent":true, "isVisibleCustomer":true, "isEditable":true, "custom_regexp":"[0-9]{10}", "value":"", "name":"phone_number", "mode":"manual" }, { "_id":"5c6e700404445e26d8dbeee6", "dc_type":"date", "label":"Birthdate", "isMandatory":false, "isVisibleAgent":true, "isVisibleCustomer":true, "isEditable":true, "custom_regexp":"", "value":"", "name":"birthdate", "mode":"manual" } ], "_id":"5c6e700404445e26d8dbeee5", "id":"fc0450c8-4b2c-42b3-b8c9-04b672ca4a90", "title":"Anagrafica #2", "dc_mode":"chat", "next":"", "__v":0 } }, "callData":{ "_NICK_":"Gabry", "email":"Gabriele.Verde@enghouse.com", "_CTHISTORY_1_Q_":"QUEUE42@acd.enghouse.com", "birthdate":"", "phone_number":"", "name":"", "surname":"", "ECID":"felixct7|1|29|15" }, "__v":0 } |