Name | Type | Description |
---|---|---|
_id | STRING | Internal object identifier |
id | STRING | Data collection unique identifier |
title | STRING | Data collection title |
dc_mode | STING | Identifies the mode of use. Can assume one of the following values:+ “chat” “cbn” “cbl” |
next | STRING | Id of the next data collection to be displayed |
dc_type | STRING | Identifies the data type of the data collection field. Possibles values are: “nickname” “name” “surname” “email” “phone” “date” |
label | STRING | Field name to be displayed |
isMandatory | BOOLEAN | Specifies if the data collection field must be filled or not |
isVisibleAgent | BOOLEAN | Specifies if the data collection field will be visible by the agent |
isVisibleCustomer | BOOLEAN | Specifies if the data collection field will be visible by the customer |
isEditable | BOOLEAN | Specifies if the data collection field will be editable by the customer |
custom_regexp | STRING | Specifies a regular expression that will be used to validate the customer input |
value | STRING | Value entered by the customer or JS expression to get the data on auto mode. |
name | STRING | Data collection field identifier |
mode | STRING | Field compilation method. Can be set to: “manual” “auto” |
{ "_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 }