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

Unique identifier of the user who started the chat

agentID

Status
titleSTRING

Unique identifier of the agent who managed the chat

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 /

array

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

ctlive_type

Status
title

NUMBER

string

Chat

start time

endTime

Status
titleSTRING
/
Status
titleNUMBER

Chat end time

isOnline

type according to the initiator. Can be one of the following values:

“chat”

“cbn”

“cbl”

“cbfs”

“call”

User Object

Name

Type

Description

id

Status
title

BOOLEAN

Identifies if a chat is currently active

userAgent

STRING

User unique identifier

nickname

Status
titleSTRING

Browser user

agent/customer nickname

firstUri

beginTime

Status
titleSTRING

Web page url

firstTitle

/

Status
title

STRING

Web page title

channel

NUMBER

Chat start time

endTime

Status
titleSTRING

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

“WEB”

“WHATSAPP”

firstIP

/

Status
titleNUMBER

Chat end time

isOnline

Status
title

STRING

Agent/customer IP

dataCollections

BOOLEAN

Identifies if a chat is currently active

userAgent

Status
title

object

Hash containing Data Collection Object

callData

STRING

Browser user agent

firstUri

Status
title

object

Hash containing call data variables and values

Example

...

languagejson

...

STRING

Web page url from which the chat started

uriHistory

Status
titlearray

Array containing all the web page urls navigated during the chat

firstTitle

Status
titleSTRING

Web page title

channel

Status
titleSTRING

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

“web”

“whatsapp”

“messenger”

“instagram”

firstIP

Status
titleSTRING

Agent/customer IP

Contact Event Object

Name

Type

Description

event

Status
titlestring

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" : [ 
        {
            "67990d2d-5d35-4d7d-93ac-df3d9edb636d":{event" : "newContactAccepted",
            "datacollectionts" :[ 1642604343456.0,
            "origin" {: "4747235938674011"
        }, 
     "_id":"5c6e700404445e26d8dbeee4",   {
            "dc_typeevent" : "nicknamejoinContact",
  
            "labelts":"Nickname" : 1642604351430.0,
            "origin" :  "isMandatory":true,"USER_gverde1@acd.enghouse.com"
        }, 
     "isVisibleAgent":true,   {
            "isVisibleCustomerevent" :true,
    "endByAgent",
           "isEditable":true,
   "ts" : 1642604409653.0,
            "custom_regexporigin" : "USER_gverde1@acd.enghouse.com",
        }
    ],
    "valueid" :"Gabry",
           "CHAT_DEFAULT_8857106a-55b8-4c47-a5af-a3aae7530e5a",
    "nameservid" : "nicknamectlivesocial_instagram",
    "ctlive_type"      : "chat",
    "modewidgetid" : "manual",
    "serv_name" : "ctlivesocial_instagram",
    "beginTime" : }1642604342648.0,
          "endTime" : 1642604409492.0,
 {   "title" : "",
    "lang" : "",
    "_iduserID" : "5c6e700404445e26d8dbeee34747235938674011",
    "users" : {
        "dc_type4747235938674011" :"name",
   {
            "labelid" : "Name4747235938674011",
  
            "isMandatorynickname":false, : "Malcom Sgatti",
            "isVisibleAgentisAgent" :true false,
               "isVisibleCustomerbeginTime" :true 1642604342648.0,

              "isEditableendTime" :true,
   1642604409492.0,
            "custom_regexpisOnline" :"",
   false,
            "valueuserAgent" : "",
  ,
            "namefirstUri" : "name",
               "modeuriHistory":"manual" : [],
            },"firstTitle" : "",
          {  "channel" : "instagram",
            "_idfirstIP" :"5c6e700404445e26d8dbeee2", "::ffff:127.0.0.1"
        },
        "dc_type":"surname",
 USER_gverde1@acd#_#enghouse#_#com" : {
             "labelid" :"surname "USER_gverde1@acd.enghouse.com",
            "nickname" : "Gabriele "isMandatoryVerde":false,
  
            "isVisibleAgentisAgent" : true,
  
            "isVisibleCustomerbeginTime":true, :  1642604351284.0,
            "isEditableendTime" :true 1642604409492.0,
               "custom_regexp":"""isOnline" : false,
               "valueuserAgent" :"",
               "name":"surname" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36",
            "firstUri" :  "mode":"manual"
     "http://localhost:3003/AD/AD.html",
      }      "uriHistory"    : ["http://localhost:3003/AD/AD.html"],
         "_id":"5c6e700404445e26d8dbeee1",   "firstTitle" : "AgentDesktop -    "id":"67990d2d-5d35-4d7d-93ac-df3d9edb636d",Enghouse Interactive",
            "titlechannel" : "Anagrafica #1web",
         "dc_mode":"chat",   "firstIP" : "::ffff:127.0.0.1"
         "next":"",}
    },
    "__vdataCollections" :0
    {
 },       "fc0450c8c2ae3430-4b2ca76c-42b344e4-b8c9a885-04b672ca4a9010fc9fb06c33" : {
            "datacollection" : [ 
            {    {
            "_id":"5c6e700404445e26d8dbeee8",
               "dc_type" : "emailnickname",
                    "label" : "Email",nickname",
                    "isMandatory" :true false,
                    "isVisibleAgent" : true,
                    "isVisibleCustomer" :true, false,
                    "isEditable" :true false,
                    "custom_regexp" : "",
                    "valuecustomMandatoryErrorMessage" :"Gabriele.Verde@enghouse.com", "",
                    "namecustomValidationErrorMessage" : "email",
                    "modevalue" : "manualMalcom Sgatti",
            },        "name" : "nickname",
  {                  "_idmode" : "5c6e700404445e26d8dbeee7",
       auto"
       "dc_type":"phone",         }
      "label":"Phone number",     ],
            "isMandatoryid":false : "e1c8cd7e-b0c3-4791-ab4b-3f3ee761dafb",
            "title"  : "isVisibleAgent":true,
            "dc_mode" :  "isVisibleCustomerchat":true,
            "next"  : "isEditable":true,
        },
        "custom_regexp":"[0-9]{10}",
 ea1f8791-df7c-4c43-b09d-2fd043756c4c" : {
             "valuedatacollection":"", : [ 
                {
  "name":"phone_number",                  "modedc_type" : "manualtext",
            },        "label" : "last agent ID",
   {                 "_idisMandatory" :"5c6e700404445e26d8dbeee6", false,
                    "dc_typeisVisibleAgent":"date", : true,
                    "labelisVisibleCustomer" :"Birthdate", false,
                    "isMandatoryisEditable" : false,
               "isVisibleAgent":true,     "custom_regexp" : "",
        "isVisibleCustomer":true,            "customMandatoryErrorMessage"   : "isEditable":true,
                    "custom_regexpcustomValidationErrorMessage" : "",
                    "value" : "",
                    "name" : "birthdateLastAgentID",
                    "mode" : "manualauto"
            }    }
     ],       ],
  "_id":"5c6e700404445e26d8dbeee5",          "id" : "fc0450c8e4e82b29-4b2c9287-42b34cb1-b8c9a2eb-04b672ca4a90",4effeb374f9d",
            "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":""CC_DEFAULT",
 
    "surname":"",       "ECID" : "felixct7|1|295039|15"
    },
    "__v" : 0
}