Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Name

Type

Description

_id

Status
titleSTRING

Internal object identifier

id

Status
titleSTRING

Chat unique identifier

servid

Status
titleSTRING

Service unique identifier

widgetid

Status
titleSTRING

Widget unique identifier

serv_name

Status
titleSTRING

Service name

beginTime

Status
titlenumber

Chat start time

endTime

Status
titlenumber

Chat end time

title

Status
titleSTRING

Chat title

lang

Status
titleSTRING

Chat language

userID

Status
titleSTRING

User unique identifier

users

Status
titleobject

Hash of the partecipants to the chat

id [user object]

. See User Object for more details

dataCollections

Status
title

STRING

User unique identifier

nickname

object

Hash containing Data Collection Object

callData

Status
title

STRING

agent/customer nickname

beginTime

object

Hash containing call data variables and values

contact_events

Status
title

STRING / Statustitle

array

Array containing contact events. See Contact Event Object for more details

User Object

Name

Type

Description

id

Status
titleSTRING

User unique identifier

nickname

Status
titleSTRING

agent/customer nickname

beginTime

Status
titleSTRING
/
Status
titleNUMBER

Chat start time

endTime

Status
titleSTRING
/
Status
titleNUMBER

Chat end time

isOnline

Status
titleBOOLEAN

Identifies if a chat is currently active

userAgent

Status
titleSTRING

Browser user agent

firstUri

Status
titleSTRING

Web page url

firstTitle

Status
titleSTRING

Web page title

channel

Status
titleSTRING

Identifies chat channel. Can assume one of the following values:

“WEB”

“WHATSAPP”

“web”

“whatsapp”

“messenger”

“instagram”

firstIP

Status
titleSTRING

Agent/customer IP

dataCollections

Contact Event Object

status

Name

title

Type

object

Hash containing Data Collection Object

callData

Description

event

Status
title

object

Hash containing call data variables and values

Example

...

languagejson

...

string

Event name. Event can be one of the following:

"newContactAccepted"
"joinContact"
"endByAgent"
"endByCustomer"
"endedByExternalWs"
"endedByKeepaliveKeyExpired"
"cb_success"
"cb_error"
"serverError"

“clientError”

ts

Status
titlenumber

timestamp of the event

origin

Status
titlestring

User id who performed the action

Example

Code Block
languagejson
{
    "_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
}