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

Data collection unique identifier

title

Status
titlestring

Data collection title

dc_mode

Status
titlesting

Identifies the mode of use. Can assume one of the following values:+

“chat”

“cbn”

“cbl”

next

Status
titlestring

Id of the next data collection to be displayed

dc_type

Status
titlestring

Identifies the data type of the data collection field.

Possibles values are:

“nickname”

“name”

“surname”

“email”

“phone”

“date”

label

Status
titlestring

Field name to be displayed

isMandatory

Status
titleboolean

Specifies if the data collection field must be filled or not

isVisibleAgent

Status
titleboolean

Specifies if the data collection field will be visible by the agent

isVisibleCustomer

Status
titleboolean

Specifies if the data collection field will be visible by the customer

isEditable

Status
titleboolean

Specifies if the data collection field will be editable by the customer

custom_regexp

Status
titlestring

Specifies a regular expression that will be used to validate the customer input

value

Status
titlestring

Value entered by the customer or JS expression to get the data on auto mode.

name

Status
titlestring

Data collection field identifier

mode

Status
titlestring

Field compilation method. Can be set to:

“manual”

“auto”

Code Block
languagejson
{
    "_id" : "5c6e700404445e26d8dbeee1",
    "id" : "67990d2d-5d35-4d7d-93ac-df3d9edb636d",
    "title" : "Anagrafica #1",
    "dc_mode" : "chat",
    "next" : "",
    "datacollection" : [ 
        {
            "_id" : "5c6e700404445e26d8dbeee4",
            "dc_type" : "nickname",
            "label" : "Nickname",
            "isMandatory" : true,
            "isVisibleAgent" : true,
            "isVisibleCustomer" : true,
            "isEditable" : true,
            "custom_regexp" : "",
            "value" : "",
            "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" : "5c6e700404445e26d8dbeee9",
            "dc_type" : "text",
            "label" : "Codice cliente",
            "isMandatory" : true,
            "isVisibleAgent" : false,
            "isVisibleCustomer" : false,
            "isEditable" : false,
            "custom_regexp" : "",
            "value" : "return $('#myCode').text()",
            "name" : "custom_code",
            "mode" : "auto"
        }
    ],
    "__v" : 0
}