...
Code Block | ||
---|---|---|
| ||
db.getCollection('services').updateMany( {}, { "$set": { enableCallbackNow: false, enableCallbackLater: false, checkMediaUrl: "http://localhost:8889/VccCTL/Availability" } }); |
DataCollection
Add a new DataCollection with the following value to fetch the VCC variable from the hosted page:
Code Block | ||
---|---|---|
| ||
{
"dc_type" : "VCC",
"label" : "VCC",
"isMandatory" : true,
"isVisibleAgent" : true,
"isVisibleCustomer" : false,
"isEditable" : true,
"custom_regexp" : "",
"customValidationErrorMessage" : "",
"value" : "return JSON.stringify(window.VCC)",
"name" : "VCC",
"mode" : "auto"
}
|
Info |
---|
The VCC object is created adding in the customer webpage the following JS snippet: <script> var VCCNewContact = { "from": { "__ref__": "NickName" }, "to": "Chat Contact center", "queue_name": "Default" }
var VCCContactWaiting = { "skills": ["Skill1Example", "Skill2Example"], "priority": 5.0, "customer_data": { "customer_id": "My customer", "customer_info": "Customer Info Example" } }
window.VCC = {}; window.VCC.NewContact = VCCNewContact; window.VCC.VCCContactWaiting = VCCContactWaiting; </script> |