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. See User Object for more details

dataCollections

Status
titleobject

Hash containing Data Collection Object

callData

Status
titleobject

Hash containing call data variables and values

contact_events

Status
titlearray

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

ctlive_type

Status
titlestring

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

“chat”

“cbn”

“cbl”

“cbfs”

“call”

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 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" : [ 
        {
            "event" : "newContactAccepted",
            "ts" : 1642604343456.0,
            "origin" : "4747235938674011"
        }, 
        {
            "event" : "joinContact",
            "ts" : 1642604351430.0,
            "origin" : "USER_gverde1@acd.enghouse.com"
        }, 
        {
            "event" : "endByAgent",
            "ts" : 1642604409653.0,
            "origin" : "USER_gverde1@acd.enghouse.com"
        }
    ],
    "id" : "CHAT_DEFAULT_8857106a-55b8-4c47-a5af-a3aae7530e5a",
    "servid" : "ctlivesocial_instagram",
    "ctlive_type" : "chat",
    "widgetid" : "",
    "serv_name" : "ctlivesocial_instagram",
    "beginTime" : 1642604342648.0,
    "endTime" : 1642604409492.0,
    "title" : "",
    "lang" : "",
    "userID" : "4747235938674011",
    "users" : {
        "4747235938674011" : {
            "id" : "4747235938674011",
            "nickname" : "Malcom Sgatti",
            "isAgent" : false,
            "beginTime" : 1642604342648.0,
            "endTime" : 1642604409492.0,
            "isOnline" : false,
            "userAgent" : "",
            "firstUri" : "",
            "uriHistory" : [],
            "firstTitle" : "",
            "channel" : "instagram",
            "firstIP" : "::ffff:127.0.0.1"
        },
        "USER_gverde1@acd#_#enghouse#_#com" : {
            "id" : "USER_gverde1@acd.enghouse.com",
            "nickname" : "Gabriele Verde",
            "isAgent" : true,
            "beginTime" : 1642604351284.0,
            "endTime" : 1642604409492.0,
            "isOnline" : false,
            "userAgent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36",
            "firstUri" : "http://localhost:3003/AD/AD.html",
            "uriHistory" : ["http://localhost:3003/AD/AD.html"],
            "firstTitle" : "AgentDesktop - Enghouse Interactive",
            "channel" : "web",
            "firstIP" : "::ffff:127.0.0.1"
        }
    },
    "dataCollections" : {
        "c2ae3430-a76c-44e4-a885-10fc9fb06c33" : {
            "datacollection" : [ 
                {
                    "dc_type" : "nickname",
                    "label" : "nickname",
                    "isMandatory" : false,
                    "isVisibleAgent" : true,
                    "isVisibleCustomer" : false,
                    "isEditable" : false,
                    "custom_regexp" : "",
                    "customMandatoryErrorMessage" : "",
                    "customValidationErrorMessage" : "",
                    "value" : "Malcom Sgatti",
                    "name" : "nickname",
                    "mode" : "auto"
                }
            ],
            "id" : "e1c8cd7e-b0c3-4791-ab4b-3f3ee761dafb",
            "title" : "",
            "dc_mode" : "chat",
            "next" : ""
        },
        "ea1f8791-df7c-4c43-b09d-2fd043756c4c" : {
            "datacollection" : [ 
                {
                    "dc_type" : "text",
                    "label" : "last agent ID",
                    "isMandatory" : false,
                    "isVisibleAgent" : true,
                    "isVisibleCustomer" : false,
                    "isEditable" : false,
                    "custom_regexp" : "",
                    "customMandatoryErrorMessage" : "",
                    "customValidationErrorMessage" : "",
                    "value" : "",
                    "name" : "LastAgentID",
                    "mode" : "auto"
                }
            ],
            "id" : "e4e82b29-9287-4cb1-a2eb-4effeb374f9d",
            "title" : "",
            "dc_mode" : "chat",
            "next" : ""
        }
    },
    "callData" : {
        "_NICK_" : "Malcom Sgatti",
        "_CTHISTORY_1_Q_" : "QUEUE42@acd.enghouse.com",
        "LastAgentID" : "",
        "REC_CALLCENTER" : "CC_DEFAULT",
        "ECID" : "felixct7|1|5039|15"
    },
    "__v" : 0
}