Hс_domain_cc_options_clean

Команда позволяет настройки значения по умолчанию на уровне домена.

Аналог команды в CoCon:

/domain/<DOMAIN>/cc/properties/clean

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/domain_cc_options_clean

Код HTTP-ответа:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Clean domain properties.
            Usage: http://server:9999/commands/domain_cc_options_clean.
            Implementation: hc_domain_cc_options_clean.erl.
            Git: git@git.eltex.loc:httpTerminal.git.
            Copyright (c) 2014, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainCleanOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainCleanInType"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>
CODE

Пример

Запрос: http://192.168.1.21:9999/commands/domain_cc_options_clean

 
CODE

Ответ:

200

 
CODE

Hс_domain_cc_options_info

Команда позволяет просмотреть настройки значений на уровне домена.

Аналог команды в CoCon:

/domain/<DOMAIN>/cc/properties/info

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/domain_cc_options_info

Код HTTP-ответа:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Show domain properties.
            Usage: http://server:9999/commands/domain_cc_options_info.
            Implementation: hc_domain_cc_options_info.erl.
            Git: git@git.eltex.loc:httpTerminal.git.
            Copyright (c) 2014, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- capabilitiesType -->
    <xs:simpleType name="capabilitiesType">
        <xs:restriction base="unionType">
            <xs:enumeration value="all"/>
            <xs:enumeration value="[operator_queue_calls, true]"/>
            <xs:enumeration value="[operator_queue_calls, false]"/>
            <xs:enumeration value="[operator_intervention, true]"/>
            <xs:enumeration value="[operator_intervention, false]"/>
        </xs:restriction>
    </xs:simpleType>
    <!-- domainPropertiesOptionsType -->
    <xs:complexType name="domainCcPropertiesOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="capabilities" type="capabilitiesType" use="optional"/>
                <xs:attribute name="cc_pubsub_user" type="stringType" use="optional"/>
                <xs:attribute name="cc_pubsub_password" type="stringType" use="optional"/>
                <xs:attribute name="generate_workitem_id_by_queue" type="booleanType" use="optional"/>
                <xs:attribute name="ldap_authentication_enabled" type="booleanType" use="optional"/>
                <xs:attribute name="ldap_server_id" type="stringType" use="optional"/>
                <xs:attribute name="relative_rating_0_1" type="stringType" use="optional"/>
                <xs:attribute name="relative_rating_0_9" type="stringType" use="optional"/>
                <xs:attribute name="relative_rating_1_5" type="stringType" use="optional"/>
                <xs:attribute name="server_data" type="stringType" use="optional"/>
                <xs:attribute name="workitem_isup_key" type="binaryType" use="optional"/>
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            The list of domain's call center public names splitted by comma.
                        </xs:documentation>
                    </xs:annotation>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainInfoOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainInfoInType" minOccurs="1"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>

CODE

Пример

Запрос: http://192.168.1.21:9999/commands/domain_cc_options_info

 
CODE

Ответ:

200

 
CODE

Hс_domain_cc_options_set

Команда позволяет изменить настройки значений на уровне домена.

Аналог команды в CoCon:

/domain/<DOMAIN>/cc/properties/set

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/domain_cc_options_set

Код HTTP-ответа:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Set domain limits.
            Usage: http://server:9999/commands/domain_cc_options_set.
            Implementation: hc_domain_cc_options_set.erl.
            Git: git@git.eltex.loc:httpTerminal.git.
            Copyright (c) 2016, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- domainPropertiesOptionsType -->
    <xs:complexType name="domainCcPropertiesOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="generate_workitem_id_by_queue" type="booleanType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="ldap_authentication_enabled" type="booleanType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="cc_pubsub_user" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="cc_pubsub_password" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="capabilities" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="ldap_server_id" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="server_data" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="workitem_isup_key" type="binaryType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="server_data" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="relative_rating_0_1" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="relative_rating_0_9" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="relative_rating_1_5" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            .
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainSetOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainSetInType"/>
                        </xs:all>
                        <xs:attribute name="force" type="xs:boolean"/>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>
CODE

Пример

Запрос: http://192.168.1.21:9999/commands/domain_cc_options_set

 
CODE

Ответ:

200

 
CODE