Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
_id |
| Internal object identifier | ||||||||
id |
| Data collection unique identifier | ||||||||
title |
| Data collection title | ||||||||
dc_mode |
| Identifies the mode of use. Can assume one of the following values: “chat” “cbn” “cbl” | ||||||||
next |
| Id of the next data collection to be displayed | ||||||||
dc_type |
| Identifies the data type of the data collection field. Possibles values are: “nickname” “name” “surname” “email” “phone” “date” | ||||||||
label |
| Field name to be displayed | ||||||||
isMandatory |
| Specifies if the data collection field must be filled or not | ||||||||
isVisibleAgent |
| Specifies if the data collection field will be visible by the agent | ||||||||
isVisibleCustomer |
| Specifies if the data collection field will be visible by the customer | ||||||||
isEditable |
| Specifies if the data collection field will be editable by the customer | ||||||||
custom_regexp |
| Specifies a regular expression that will be used to validate the customer input | ||||||||
value |
| Value entered by the customer or JS expression to get the data on auto mode. | ||||||||
name |
| Data collection field identifier | ||||||||
mode |
| Field compilation method. Can be set to: “manual” “auto” |
...
Code Block | ||
---|---|---|
| ||
{ "_id" : "5c6e700404445e26d8dbeee1", "id" : "67990d2d-5d35-4d7d-93ac-df3d9edb636d", "title" : { "IT" : "Anagrafica #1", "GB" : "Registry #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 } |