Versions Compared

Key

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

Name

Type

Description

_id

Status
titleSTRING

Internal object identifier

room

Status
titleSTRING

Chat unique identifier

messages

Status
titlearray

Array containing chat messages

id [message object]

Status
titlestring

message unique identifier

messageType

ctlive_type

Status
titleSTRING

Type of the message

Chat type according to the initiator. Can

assume

be one of the following values:

“TEXT”

“chat”

“IMAGE”

“cbn”

“DOCUMENT”

“cbl”

“LINK”

“cbfs”

text

Status
titleSTRING

Only in “TEXT” message, contains the message sent

user

“call”

messages

Status
title

object

ts

Status
titleNUMBER

Timestamp of when message was sent

url

Status
titleSTRING

Contains the url of the link message

id [content object]

Status
titlestring

Contains the id of the multimedia message sent.

array

Semplified user object containing only user id and isAgent properties of the user who sent the message.

Array containing chat messages. See Message Object for more details. Message Object

Example

Code Block
languagejson
{
    "_id" :"5d8dbcdaf6a71d3120275017 "CHAT_DEFAULT_8857106a-55b8-4c47-a5af-a3aae7530e5a",
    "room" : "CHAT_DEFAULT_1c5e4ed88857106a-b67555b8-46f94c47-866e-b4fc1d893a72",a5af-a3aae7530e5a",
    "ctlive_type" : "chat",
    "messages" : [ 
        {
            "data" : {
                "replyTo" : "",
                "id" :"eee89a4f-8000-4589-a5ab-c52d3b520785 "aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDUwODQxMzk0OTA4OjM0MDI4MjM2Njg0MTcxMDMwMDk0OTEyODE2NzQwNTg4MTcxMjQ0NzozMDMwMDcwMTg3NTA5MTIwMjkwMzUzNDkzMzgzMjEwNTk4NAZDZD",
                "messageType" : "TEXT",
                "content" : {
                    "text" : "helloprova1",
                    "user" : {
                        "id" :"USER_gverde1@acd.enghouse.com "4747235938674011",
                        "isAgent":true : false
                    }
                },
                "ts" :1569569940285.0 1642604343631.0,
                "deliverySuccess" : true,
                "deliveryErrorReason" : "",
                "messageSeen" : null
            },
            "_id" : ObjectId("5d8dbcdaf6a71d312027501b61e8277aef3d6b076066d287"),
            "room" : "CHAT_1c5e4ed8DEFAULT_8857106a-b67555b8-46f94c47-866ea5af-b4fc1d893a72a3aae7530e5a"
        }, 
        {
            "data" : {
                "replyTo" : "",
                "id" : "df7da65afb32e661-099b136d-40b44867-a076a1f8-ff486b245afda31eca5b673a",
                "messageType" : "LINKTEXT",
                "content" : {
                    "urltext" :"https://www.google.com/", "Buongiorno, sono l'operatore Gabriele Verde, come posso esserle utile?",
                    "user" : {
                        "id" : "USER_c8e1eb84-60d3-4d69-b10b-96364845023e",gverde1@acd.enghouse.com",
                        "isAgent":false : true
                    }
                },
                "ts" :1569569956940 1642604351616.0,
                "deliverySuccess" : true,
                "deliveryErrorReason" : "",
                "messageSeen" : null
            },
            "_id" : ObjectId("5d8dbcdaf6a71d312027501a61e8277aef3d6b076066d288"),
            "room" : "CHAT_DEFAULT_1c5e4ed88857106a-b67555b8-46f94c47-866ea5af-b4fc1d893a72a3aae7530e5a"
        }, 
        {
            "data" : {
                "replyTo" : "",
                "id" : "61837323ba35d81d-efd0d56e-487649b4-82a4ae17-e7078d7f79c0020b9e477281",
                "messageType" : "IMAGEendChat",
                "ts" :1569569972480 1642604409492.0,
                "deliverySuccess" : },true,
                "_iddeliveryErrorReason" : "5d8dbcdaf6a71d3120275019",
         "room":"CHAT_1c5e4ed8-b675-46f9-866e-b4fc1d893a72"       "messageSeen" : null
           },     "content" : {
                    "datauser" : {
             "id":"bb0d0faf-a650-4d9a-8fde-fb1b00bcf4d4",           "isAgent" : true,
                        "messageTypeid" :"DOCUMENT", "USER_gverde1@acd.enghouse.com"
                    }
                }
  "ts":1569569995033.0          },
            "_id" : ObjectId("5d8dbcdaf6a71d312027501861e8277aef3d6b076066d289"),
            "room" : "CHAT_1c5e4ed8DEFAULT_8857106a-b67555b8-46f94c47-866ea5af-b4fc1d893a72a3aae7530e5a"
        }
    ],
    "__v" : 0
}