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

serv_name

beginTime

endTime

title

lang

userID

users

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]

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”

firstIP

Status
titleSTRING

Agent/customer IP

dataCollections

Status
titleobject

Hash containing Data Collection Object

callData

Status
titleobject

Hash containing call data variables and values

Example

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