Versions Compared

Key

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

...

Code Block
languagejson
        {
            "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>