Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Hc_cc_queue_agent_profile_add

Команда добавления нового профиля причин технического перерыва агента.

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

domain/<DOMAIN>/cc/agent/auxwork/profile/add

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

POST

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

http://host:port/commands/cc_queue_agent_profile_add

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

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

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

<xs:include schemaLocation="error.xsd"/>
<!--statusType-->
<xs:complexType name="profileType">
    <xs:attribute name="id" use="required"/>
</xs:complexType>
<!--requestType-->
<xs:complexType name="requestType">
    <!--request body-->
    <xs:sequence>
        <xs:element name="profile" type="profileType"/>
    </xs:sequence>
    <xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
<!--responseType-->
<xs:complexType name="responseType">
    <xs:sequence>
        <xs:element name="ok"/>
    </xs:sequence>
</xs:complexType>
<!--in-->
<xs:element name="in">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="request" type="requestType"/>
        </xs:sequence>
    </xs:complexType>
</xs:element>
<!--out-->
<xs:element name="out">
    <xs:complexType>
        <xs:choice>
            <xs:element name="response" type="responseType"/>
            <!--bad. command failed:-->
            <xs:element name="error" type="errorType"/>
        </xs:choice>
    </xs:complexType>
</xs:element>

Пример:

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

<in
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_add.xsd">
    <request domain="biysk.local">
        <profile id="test_profile"/>
    </request>
</in>

Код ответа:

200

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_add.xsd">
    <response>
        <ok/>
    </response>
</out>

Hc_cc_queue_agent_profile_clean

Команда удаления причины перерыва из профиля агента.

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

domain/<DOMAIN>/cc/agent/auxwork/profile/clean  

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

POST

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

http://host:port/commands/cc_queue_agent_profile_clean

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

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

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

<xs:include schemaLocation="error.xsd"/>
<!--reasonType-->
<xs:complexType name="reasonType">
    <xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<!--profileType-->
<xs:complexType name="profileType">
    <xs:sequence>
        <xs:element name="reason" type="reasonType" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<!--requestType-->
<xs:complexType name="requestType">
    <!--request body-->
    <xs:sequence>
        <xs:element name="profile" type="profileType" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
<!--warningType-->
<xs:complexType name="warningType">
    <xs:attribute name="profile" type="xs:string" use="required"/>
    <xs:attribute name="reason" type="xs:string" use="required"/>
    <xs:attribute name="body" type="errorReasonType"/>
</xs:complexType>
<!--warningsType-->
<xs:complexType name="warningsType">
    <xs:sequence>
        <xs:element name="warning" type="warningType" maxOccurs="unbounded"/>
    </xs:sequence>
</xs:complexType>
<!--responseType-->
<xs:complexType name="responseType">
    <xs:choice>
        <xs:element name="ok"/>
        <xs:element name="warnings" type="warningsType"/>
    </xs:choice>
</xs:complexType>
<!--in-->
<xs:element name="in">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="request" type="requestType"/>
        </xs:sequence>
    </xs:complexType>
</xs:element>
<!--out-->
<xs:element name="out">
    <xs:complexType>
        <xs:choice>
            <xs:element name="response" type="responseType"/>
            <!--bad. command failed:-->
            <xs:element name="error" type="errorType"/>
        </xs:choice>
    </xs:complexType>
</xs:element>

Пример:

Запрос:

http://192.168.1.21:9999/commands/cc_queue_agent_profile_clean

<in
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_clean.xsd">
    <request domain="biysk.local">
        <profile id="test_profile">
            <reason id="test_reason"/>
            <reason id="undefined"/>
        </profile>
    </request>
</in>

Код ответа:

200

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_clean.xsd">
    <response>
        <ok/>
    </response>
</out>

Hc_cc_queue_agent_profile_info

Команда получения информации обо всех профилях причин перерыва агентов.

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

domain/<DOMAIN>/cc/agent/auxwork/profile/info

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

POST

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

http://host:port/commands/cc_queue_agent_profile_info

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

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

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

<xs:include schemaLocation="error.xsd"/>
    <xs:complexType name="reasonType">
        <xs:attribute name="id" use="required"/>
    </xs:complexType>

    <!--reasonType-->
    <xs:complexType name="profileType">
        <xs:sequence>
            <xs:element name="reason" type="reasonType" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="id" use="required"/>
    </xs:complexType>
    <!--responseType-->
    <xs:complexType name="responseType">
        <xs:sequence>
            <xs:element name="profile" type="profileType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="requestType">
        <xs:attribute name="domain" type="xs:string" use="required"/>
    </xs:complexType>
    <!--in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request" type="requestType"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!--out-->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="response" type="responseType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>

Пример:

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

<in
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_info.xsd">
    <request domain="biysk.local"/>
</in>

Код ответа:

200

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_info.xsd">
    <response>
        <profile id="HelpMe">
            <reason id="busy"/>
            <reason id="callback"/>
            <reason id="consult"/>
            <reason id="dinner"/>
            <reason id="handle_call"/>
            <reason id="locality_transfer"/>
            <reason id="remote"/>
            <reason id="report"/>
            <reason id="rest"/>
        </profile>
        <profile id="103">
            <reason id="busy"/>
            <reason id="dinner"/>
            <reason id="124"/>
            <reason id="handle_call"/>
            <reason id="callback"/>
            <reason id="rest"/>
            <reason id="locality_transfer"/>
        </profile>
        <profile id="test_profile">
            <reason id="busy"/>
        </profile>
        <profile id="default">
            <reason id="124"/>
            <reason id="busy"/>
            <reason id="callback"/>
            <reason id="consult"/>
            <reason id="dinner"/>
            <reason id="empty_reason"/>
            <reason id="handle_call"/>
            <reason id="locality_transfer"/>
            <reason id="remote"/>
            <reason id="report"/>
            <reason id="rest"/>
        </profile>
        <profile id="test_reason">
            <reason id="busy"/>
        </profile>
    </response>
</out>

Hc_cc_queue_agent_profile_remove

Команда удаления  профиля причин технического перерыва агента.

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

domain/<DOMAIN>/cc/agent/auxwork/profile/remove

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

POST

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

http://host:port/commands/cc_queue_agent_profile_remove

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

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

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

 <xs:include schemaLocation="error.xsd"/>
    <!--statusType-->
    <xs:complexType name="profileType">
        <xs:attribute name="id" use="required"/>
    </xs:complexType>
    <!--requestType-->
    <xs:complexType name="requestType">
        <!--request body-->
        <xs:sequence>
            <xs:element name="profile" type="profileType"/>
        </xs:sequence>
        <xs:attribute name="domain" type="xs:string" use="required"/>
    </xs:complexType>
    <!--responseType-->
    <xs:complexType name="responseType">
        <xs:sequence>
            <xs:element name="ok"/>
        </xs:sequence>
    </xs:complexType>
    <!--in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request" type="requestType"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!--out-->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="response" type="responseType"/>
                <!--bad. command failed:-->
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>

Пример:

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

<in
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_remove.xsd">
    <request domain="biysk.local">
        <profile id="test_profile"/>
    </request>
</in>

Код ответа:

200

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_remove.xsd">
    <response>
        <ok/>
    </response>
</out>

Hc_cc_queue_agent_profile_set

Команда изменения  профиля причин технического перерыва агента.

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

domain/<DOMAIN>/cc/agent/auxwork/reason/set

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

POST

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

http://host:port/commands/cc_queue_agent_profile_set

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

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

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

<xs:include schemaLocation="error.xsd"/>
<!--reasonType-->
<xs:complexType name="reasonType">
    <xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<!--profileType-->
<xs:complexType name="profileType">
    <xs:sequence>
        <xs:element name="reason" type="reasonType" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<!--requestType-->
<xs:complexType name="requestType">
    <!--request body-->
    <xs:sequence>
        <xs:element name="profile" type="profileType" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
<!--warningType-->
<xs:complexType name="warningType">
    <xs:attribute name="profile" type="xs:string" use="required"/>
    <xs:attribute name="reason" type="xs:string" use="required"/>
    <xs:attribute name="body" type="errorReasonType"/>
</xs:complexType>
<!--warningsType-->
<xs:complexType name="warningsType">
    <xs:sequence>
        <xs:element name="warning" type="warningType" maxOccurs="unbounded"/>
    </xs:sequence>
</xs:complexType>
<!--responseType-->
<xs:complexType name="responseType">
    <xs:choice>
        <xs:element name="ok"/>
        <xs:element name="warnings" type="warningsType"/>
    </xs:choice>
</xs:complexType>
<!--in-->
<xs:element name="in">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="request" type="requestType"/>
        </xs:sequence>
    </xs:complexType>
</xs:element>
<!--out-->
<xs:element name="out">
    <xs:complexType>
        <xs:sequence maxOccurs="unbounded">
            <xs:choice>
                <xs:element name="response" type="responseType"/>
                <!--bad. command failed:-->
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
</xs:element>

Пример:

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

<in xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_set.xsd">
    <request domain="biysk.local">
        <profile id="HelpMe">
            <reason id="test_reason"/>
            <reason id="washroom"/>
        </profile>
    </request>
</in>

Код ответа:

200

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_cc_queue_agent_profile_set.xsd">
    <response>
        <ok/>
    </response>
</out>
  • Нет меток

0 Комментариев

Вы не можете зарегистрироваться в системе. Любые изменения, которые Вы сделаете, будут помечены как сделанные анонимно. Вы можете Войти, если у Вас есть учётная запись.