Name | Type | Description | ||||
---|---|---|---|---|---|---|
_id |
| Internal object identifier | ||||
id |
| Chat unique identifier | ||||
servid |
| Service unique identifier | ||||
widgetid |
| 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 |
. See User Object for more details | ||||
dataCollections |
|
User unique identifier
| Hash containing Data Collection Object | |||
callData |
|
agent/customer nickname
| Hash containing call data variables and values | |||
contact_events |
|
| Array containing contact events. See Contact Event Object for more details |
User Object
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
id |
| 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”“web” “whatsapp” “messenger” “instagram” | ||||||
firstIP |
| Agent/customer IP |
Contact Event Object
Name |
---|
Type |
---|
Hash containing Data Collection Object
Description | ||||
---|---|---|---|---|
event |
|
Hash containing call data variables and values
Example
...
language | json |
---|
...
| Event name. Event can be one of the following: "newContactAccepted" “clientError” | |||||
ts |
| timestamp of the event | ||||
origin |
| User id who performed the action |
Example
Code Block | ||
---|---|---|
| ||
{ "_id" : "CHAT_DEFAULT_8857106a-55b8-4c47-a5af-a3aae7530e5a", "contact_events" : [ "_id":"5c6e700404445e26d8dbeee4", { "dc_typeevent" : "nicknamenewContactAccepted", "labelts":"Nickname" : 1642604343456.0, "origin" : "isMandatory4747235938674011":true, }, "isVisibleAgent":true, { "isVisibleCustomerevent" :true, "joinContact", "isEditablets" :true, 1642604351430.0, "custom_regexporigin" : "USER_gverde1@acd.enghouse.com", }, "value":"Gabry", { "nameevent" : "nicknameendByAgent", "modets" :"manual" 1642604409653.0, }, "origin" : "USER_gverde1@acd.enghouse.com" { } ], "_id" :"5c6e700404445e26d8dbeee3 "CHAT_DEFAULT_8857106a-55b8-4c47-a5af-a3aae7530e5a", "servid" : "ctlivesocial_instagram", "dcctlive_type" : "name", chat", "widgetid" : "", "labelserv_name" : "Namectlivesocial_instagram", "beginTime" : 1642604342648.0, "endTime" : 1642604409492.0, "isMandatorytitle" :false "", "lang" : "", "userID" : "isVisibleAgent4747235938674011":true, "users" : { "isVisibleCustomer4747235938674011" :true, { "id" : "isEditable4747235938674011":true, "custom_regexpnickname" : "Malcom Sgatti", "valueisAgent" :"", false, "name":"namebeginTime", : 1642604342648.0, "modeendTime":"manual" : 1642604409492.0, },"isOnline" : false, { "userAgent" : "", "_idfirstUri" : "5c6e700404445e26d8dbeee2", "dc_typefirstTitle" : "surname", "labelchannel" : "surnameinstagram", "firstIP" : "isMandatory":false,::ffff:127.0.0.1" }, "isVisibleAgent":true, "USER_gverde1@acd#_#enghouse#_#com" : { "id" : "isVisibleCustomer":true, USER_gverde1@acd.enghouse.com", "isEditablenickname" :true, "Gabriele Verde", "custom_regexpisAgent" :"", true, "valuebeginTime":"", : 1642604351284.0, "nameendTime":"surname", : 1642604409492.0, "isOnline" : false, "mode":"manual" "userAgent" : "Mozilla/5.0 (Windows NT } ],10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36", "_idfirstUri" :"5c6e700404445e26d8dbeee1 "http://localhost:3003/AD/AD.html", "id":"67990d2d-5d35-4d7d-93ac-df3d9edb636d", "firstTitle" : "AgentDesktop - Enghouse Interactive", "title":"Anagrafica #1", "dc_modechannel" : "chatweb", "nextfirstIP" : "",::ffff:127.0.0.1" } }, "__v":0 "dataCollections" : { }, "fc0450c8c2ae3430-4b2ca76c-42b344e4-b8c9a885-04b672ca4a9010fc9fb06c33" : { "datacollection" : [ { "dc_idtype" : "5c6e700404445e26d8dbeee8nickname", "dc_typelabel" : "emailnickname", "label":"Email", "isMandatory" : false, "isMandatory":true, "isVisibleAgent" : true, "isVisibleCustomer" :true, false, "isEditable" :true, false, "custom_regexp" : "", "value":"Gabriele.Verde@enghouse.com", "namecustomMandatoryErrorMessage" : "email", "modecustomValidationErrorMessage" : "manual", }, "value" : "Malcom Sgatti", { "_idname" : "5c6e700404445e26d8dbeee7nickname", "dc_typemode" : "phoneauto", "label":"Phone number", } "isMandatory":false], "id" : "isVisibleAgent":truee1c8cd7e-b0c3-4791-ab4b-3f3ee761dafb", "title" : "isVisibleCustomer":true, "dc_mode" : "isEditable":true, chat", "custom_regexpnext" :"[0-9]{10}", "" }, "value":"", ea1f8791-df7c-4c43-b09d-2fd043756c4c" : { "namedatacollection":"phone_number", : [ "mode":"manual"{ }, "dc_type" : "text", { "_idlabel" : "5c6e700404445e26d8dbeee6last agent ID", "dc_typeisMandatory" :"date", false, "labelisVisibleAgent" :"Birthdate", true, "isMandatoryisVisibleCustomer" : false, "isVisibleAgentisEditable" :true, false, "isVisibleCustomercustom_regexp" :true, "", "isEditablecustomMandatoryErrorMessage" :true, "", "custom_regexpcustomValidationErrorMessage" : "", "value" : "", "name" : "birthdateLastAgentID", "mode" : "manualauto" } } ], ], "_id":"5c6e700404445e26d8dbeee5", "id" : "fc0450c8e4e82b29-4b2c9287-42b34cb1-b8c9a2eb-04b672ca4a904effeb374f9d", "title" : "Anagrafica #2", "dc_mode" : "chat", "next" : "", "__v":0} } , }, "callData" : { "_NICK_" :"Gabry", "email":"Gabriele.Verde@enghouse.com "Malcom Sgatti", "_CTHISTORY_1_Q_" : "QUEUE42@acd.enghouse.com", "birthdateLastAgentID" : "", "phoneREC_numberCALLCENTER":"", "name":"", "surname":"", : "CC_DEFAULT", "ECID" : "felixct7|1|295039|15" }, "__v" : 0 } |