{"openapi":"3.0.0","info":{"title":"1690.fscc-history-s-rest-v1","description":"[REST API для истории обращений - Фронт](http://wiki.corp.dev.vtb/pages/viewpage.action?pageId=260404881) Постобработка и поиск","version":"1.0.0","contact":{"url":"https://wiki.corp.dev.vtb/pages/viewpage.action?pageId=365128887","email":"VTB4036504@region.vtb.ru","name":"Илья Довженко"}},"servers":[{"url":"http://localhost:8080/ui-api-web/smb/fscc/history/v1","description":"Локальное отладочное тестирование."},{"url":"https://dev-callcenterch.apps.ds1-genr01.corp.dev.vtb/ui-api-web/smb/fscc/history/v1","description":"DSO"},{"url":"https://ift-callcenterch.apps.ss1-genr01.test.vtb.ru/ui-api-web/smb/fscc/history/v1","description":"IFT"},{"url":"https://preprod-callcenterch.apps.rs1-genr01.test.vtb.ru/ui-api-web/smb/fscc/history/v1","description":"PREPROD"},{"url":"https://fscc.region.vtb.ru/ui-api-web/smb/fscc/history/v1","description":"PROD"}],"security":[{"EpaAuth":[]}],"tags":[{"name":"get","description":"Получение данных"},{"name":"postprocessing","description":"Постобработка вызова"}],"paths":{"/update/call/{callId}/postprocessing":{"put":{"tags":["postprocessing"],"description":"Постобработка вызова","operationId":"callPost","parameters":[{"in":"path","name":"callId","required":true,"description":"CallID вызова","schema":{"type":"string","description":"CallID вызова","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"requestBody":{"required":true,"description":"Данные для постобработки вызова","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostProcessingDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/search":{"post":{"tags":["get"],"description":"Поиск вызовов по полям","operationId":"search","requestBody":{"required":true,"description":"Данные для поиска","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchDto"}}}},"responses":{"200":{"$ref":"#/components/responses/PagedResponse"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/search/call/agent":{"get":{"tags":["get"],"description":"Поиск вызовов по оператору за текущий день","operationId":"searchByAgent","parameters":[{"in":"query","name":"agent","required":true,"description":"Оператор (UPN из токена)","schema":{"type":"string","maxLength":100,"description":"Оператор (UPN из токена)","example":"agent@vtb.ru"}}],"responses":{"200":{"$ref":"#/components/responses/OutSearchByAgentDto"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/update/call/{callId}/consultation":{"put":{"tags":["update"],"summary":"Создание консультации","description":"Создание консультации","operationId":"consultationSave","parameters":[{"in":"path","name":"callId","description":"CallID вызова","required":true,"schema":{"type":"string","description":"CallID вызова","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"requestBody":{"required":true,"description":"Данные для создания консультации","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InConsultationDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/update/consultation/{callId}":{"put":{"tags":["update"],"description":"Метод обновления контекста данными консультации","operationId":"updateContextByConsultation","parameters":[{"in":"path","name":"callId","description":"Технический идентификатор звонка","required":true,"schema":{"type":"string","description":"Технический идентификатор звонка","maxLength":36}}],"requestBody":{"required":true,"description":"Данные для обогащения","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConsultationDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/delete/consultation/{callId}":{"post":{"tags":["delete"],"description":"Метод удаления консультации из контекста","operationId":"removeConsultationInContext","parameters":[{"in":"path","name":"callId","description":"Технический идентификатор звонка","required":true,"schema":{"type":"string","description":"Технический идентификатор звонка","maxLength":36}}],"requestBody":{"required":true,"description":"Данные для для удаления","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextConsultationHeadDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/get/topics":{"post":{"tags":["get"],"description":"Топ тематик обращений","operationId":"topTopics","requestBody":{"required":true,"description":"Данные для графика","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopTopicCriteria"}}}},"responses":{"200":{"$ref":"#/components/responses/TopTopicResultDto"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/download":{"post":{"tags":["get"],"description":"Экспорт истории звонков","operationId":"download","requestBody":{"required":true,"description":"Данные для получения отчета","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/save/call":{"post":{"tags":["create"],"description":"Создание вызова","operationId":"createCall","requestBody":{"required":true,"description":"Данные для создания вызова","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveCallDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/update/conversation/{convId}":{"put":{"tags":["update"],"summary":"Изменение обращения","description":"Изменение обращения","operationId":"conversationUpdate","parameters":[{"in":"path","name":"convId","description":"ID обращения","required":true,"schema":{"type":"string","description":"ID обращения","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"requestBody":{"required":true,"description":"Данные для изменения обращения","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConversationDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/update/call/{callId}":{"put":{"tags":["update"],"summary":"Изменение вызова","description":"Изменение вызова","operationId":"callUpdate","parameters":[{"in":"path","name":"callId","description":"CallID вызова","required":true,"schema":{"type":"string","description":"CallID вызова","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"requestBody":{"required":true,"description":"Данные для изменения вызова","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCallDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/update/call/{callId}/task":{"put":{"tags":["update"],"summary":"Создание задания на обзвон","description":"Создание задания на обзвон","operationId":"taskSave","parameters":[{"in":"path","name":"callId","description":"CallID вызова","required":true,"schema":{"type":"string","description":"CallID вызова","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"requestBody":{"required":true,"description":"Данные для создания задания на обзвон","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InTaskDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/consultation/statuses":{"post":{"tags":["create"],"summary":"Создание статуса консультаци","description":"Создание статуса консультаци","operationId":"consultationStatusSave","requestBody":{"required":true,"description":"Данные для создания статуса консультации","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputConsultationStatusDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/consultation/statuses/search":{"post":{"tags":["get"],"summary":"Получение списка статусов консультаций","description":"Получение списка статусов консультаций с пагинацией и сортировкой","operationId":"consultationStatusSearch","requestBody":{"required":true,"description":"Данные для получения списков статусов консультаций","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriteriaDto"}}}},"responses":{"200":{"$ref":"#/components/responses/PagedConsultationStatusResponse"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/consultation/statuses/{statusId}":{"get":{"tags":["get"],"summary":"Получение статуса консультации по идентификатору","description":"Получение статус консультации по идентификатору","operationId":"consultationStatusById","parameters":[{"in":"path","name":"statusId","description":"Идентификатор статуса консультации","required":true,"schema":{"type":"string","description":"Идентификатор статуса консультации","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"responses":{"200":{"$ref":"#/components/responses/ConsultationStatusDto"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/consultation/statuses/{statusId}/update":{"put":{"tags":["update"],"summary":"Обновление статуса консультации","description":"Обновление статуса консультации по идентификатору","operationId":"consultationStatusUpdate","parameters":[{"in":"path","name":"statusId","description":"Идентификатор статуса консультации","required":true,"schema":{"type":"string","description":"Идентификатор статуса консультации","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"requestBody":{"required":true,"description":"Данные для обновления статуса консультаций по заданному идентификатору","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputConsultationStatusDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/consultation/statuses/actual/update":{"put":{"tags":["update"],"summary":"Изменение актуальности статуса консультации","description":"Изменение актуальности статуса консультации по идентификатору","operationId":"consultationStatusActualSwitch","requestBody":{"required":true,"description":"Данные для обновления статуса консультаций по заданному идентификатору","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationStatusUpdateDto"}}}},"responses":{"200":{"$ref":"#/components/responses/ConsultationStatusDto"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/consultation/statuses/actual":{"get":{"tags":["get"],"summary":"Получение списка актуальных статусов консультаций","description":"Получение списка актуальных статусов консультаций","operationId":"consultationStatusActualGet","responses":{"200":{"$ref":"#/components/responses/ConsultationStatusListDto"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/update/call/{callId}/notification":{"put":{"tags":["update"],"summary":"Создание уведомления","description":"Создание уведомления","operationId":"notificationSave","parameters":[{"in":"path","name":"callId","description":"CallID вызова","required":true,"schema":{"type":"string","description":"CallID вызова","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"requestBody":{"required":true,"description":"Данные для создания уведомления","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InNotificationDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/autoclose/postprocessing":{"get":{"tags":["get"],"summary":"Получение значения автозавершение постобработки","description":"Получение значения автозавершение постобработки","operationId":"autoCloseGet","responses":{"200":{"$ref":"#/components/responses/AutoClosePostprocessingResponse"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/autoclose/postprocessing/update":{"put":{"tags":["update"],"summary":"Изменение значения автозавершение постобработки","description":"Изсенение значения автозавершение постобработки","operationId":"autoCloseUpdate","requestBody":{"required":true,"description":"Данные для постобработки вызова","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoClosePostprocessingDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/topics/top":{"get":{"tags":["get"],"summary":"Получение списка топ 10 тематик по консультациям","description":"Получение списка топ 10 тематик по консультациям","operationId":"getTopTopics","responses":{"200":{"$ref":"#/components/responses/TopTopicsListDto"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/get/notification/contact/{mdmCode}":{"get":{"tags":["get"],"summary":"Получение списка контактов из уведомлении по мдм коду","description":"Получение списка контактов из уведомлении по мдм коду","operationId":"getNotificationContacts","parameters":[{"in":"path","name":"mdmCode","description":"МДМ код организации","required":true,"schema":{"type":"string","description":"МДМ код организации","maxLength":36,"example":"2c9192b17781366e017781393aa60003"}}],"responses":{"200":{"$ref":"#/components/responses/NotificationContactListDto"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/cron/dict":{"get":{"tags":["task"],"description":"Запрос на получение справочника названий периодов","operationId":"getCrons","responses":{"200":{"description":"Список наименований периодов","content":{"application/json":{"schema":{"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/CronDto"}}}}},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/task/create":{"post":{"tags":["task"],"description":"Создание задачи в планировщике","operationId":"createSchedulerTask","requestBody":{"required":true,"description":"Данные для постобработки вызова","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerTaskDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/task/update/{id}":{"put":{"tags":["task"],"description":"Изменение задачи в планировщике","operationId":"updateSchedulerTask","parameters":[{"in":"path","name":"id","description":"Идентификатор задачи в бд","required":true,"schema":{"type":"string","description":"Идентификатор задачи в бд","maxLength":36,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"}}],"requestBody":{"required":true,"description":"Данные для постобработки вызова","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerTaskDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/task/delete/{id}":{"delete":{"tags":["task"],"description":"Удаление задачи в планировщике","operationId":"deleteSchedulerTask","parameters":[{"in":"path","name":"id","description":"Идентификатор задачи в бд","required":true,"schema":{"type":"string","description":"Идентификатор задачи в бд","maxLength":36,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"}}],"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/task/switch/{id}":{"get":{"tags":["task"],"description":"Переключение статуса задачи в планировщике","operationId":"switchSchedulerTask","parameters":[{"in":"path","name":"id","description":"Идентификатор задачи в бд","required":true,"schema":{"type":"string","description":"Идентификатор задачи в бд","maxLength":36,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"}}],"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/tasks":{"get":{"tags":["task"],"description":"Получение списка задач планировщика","operationId":"getSchedulerTasks","responses":{"200":{"description":"Список задач","content":{"application/json":{"schema":{"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/FullSchedulerTaskDto"}}}}},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/task/{id}":{"get":{"tags":["task"],"description":"Получение задачи планировщика","operationId":"getSchedulerTask","parameters":[{"in":"path","name":"id","description":"Идентификатор задачи в бд","required":true,"schema":{"type":"string","description":"Идентификатор задачи в бд","maxLength":36,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"}}],"responses":{"200":{"$ref":"#/components/schemas/FullSchedulerTaskDto"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/stream/status{id}":{"get":{"tags":["stream"],"description":"Получение статуса выгрузки","operationId":"getStreamingStatus","parameters":[{"in":"path","name":"id","required":true,"description":"id записи","schema":{"type":"string","description":"id записи","maxLength":255,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"}}],"responses":{"200":{"description":"Статус выгрузки","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamStatusDto"}}}},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/upload/switch":{"post":{"tags":["stream"],"description":"Переключение статуса выгрузки","operationId":"uploadSwitch","requestBody":{"required":true,"description":"Данные для переключения статуса выгрузки","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSwitchDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/upload/dates":{"post":{"tags":["stream"],"description":"Выгрузка за период","operationId":"uploadDates","requestBody":{"required":true,"description":"Данные для выгрузки за период","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadDatesDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/stream/inprocess":{"get":{"tags":["stream"],"description":"Получение массива доп заданий в работе","operationId":"getStreamInProcess","responses":{"200":{"description":"Массив периодов в работе","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InProcessStreamListDto"}}}},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/stream/unload":{"get":{"tags":["stream"],"description":"Получение массива невыгруженных периодов","operationId":"getStreamUnload","responses":{"200":{"description":"Массив невыгруженных периодов","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnloadStreamListDto"}}}},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}},"/stream/dictionary":{"post":{"tags":["stream"],"description":"Поднятие версии","operationId":"streamDictionary","requestBody":{"required":true,"description":"Поднятие версии","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamDictionaryDto"}}}},"responses":{"200":{"$ref":"#/components/responses/success"},"400":{"$ref":"#/components/responses/badRequest"},"500":{"$ref":"#/components/responses/error"}}}}},"components":{"schemas":{"OutSearchByAgentResultDto":{"type":"object","title":"OutSearchByAgentResultDto","description":"DTO для возврата результата поиска вызовов по агенту","additionalProperties":false,"properties":{"data":{"type":"array","description":"Результат поиска","nullable":false,"maxItems":1000000,"items":{"$ref":"#/components/schemas/OutSearchByAgentDto"}}}},"SearchDto":{"type":"object","title":"SearchDto","description":"DTO для поиска вызовов","additionalProperties":false,"properties":{"beginDate":{"type":"string","format":"date-time","description":"Начало периода поиска в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"endDate":{"type":"string","format":"date-time","description":"Конец периода поиска в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-12T17:00:00.000Z"},"callType":{"type":"string","description":"Тип вызова","nullable":true,"enum":["INCOMING","OUTGOING","UNDEFINED",null],"example":"INCOMING"},"inn":{"type":"string","description":"ИНН","nullable":true,"maxLength":12,"example":"665544332211"},"phoneNumber":{"type":"string","description":"Номер телефона","nullable":true,"maxLength":11,"example":"89998887766"},"agent":{"type":"string","description":"Оператор (UPN из токена)","nullable":true,"maxLength":100,"example":"agent@vtb.ru"},"sortColumn":{"type":"string","description":"Колонка для сортировки (Пока игнорируем)","nullable":true,"maxLength":100,"example":"beginDate"},"sortType":{"type":"string","description":"Тип сортировки","nullable":true,"maxLength":100,"example":"desc"},"pageNumber":{"type":"integer","description":"Номер нужной страницы","nullable":true,"minimum":1,"maximum":999999,"example":1},"pageSize":{"type":"integer","description":"Размер страницы страницы","nullable":true,"minimum":1,"maximum":999999,"example":10}},"required":["beginDate","endDate","inn","phoneNumber","agent","sortColumn","sortType","pageNumber","pageSize"]},"OutCallDto":{"type":"object","title":"OutCallDto","description":"Дто для отдачи вызова","additionalProperties":false,"properties":{"callId":{"type":"string","description":"Идентификатор вызова","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60003"},"globalCallId":{"type":"string","description":"Глобальный идентификатор звонка","nullable":false,"maxLength":20,"example":"2c9192b17781366e01"},"conversationId":{"type":"string","description":"Id обращения","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60167"},"phoneNumber":{"type":"string","description":"Номер телефона клиента","nullable":false,"maxLength":11,"example":"89998887733"},"clientId":{"type":"string","description":"Идентификатор клиента в сервисе Карточка ФЛ","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60"},"lastName":{"type":"string","description":"Фамилия клиента","nullable":true,"maxLength":100,"example":"Клиентов"},"firstName":{"type":"string","description":"Имя клиента","nullable":true,"maxLength":100,"example":"Клиент"},"middleName":{"type":"string","description":"Отчество клиента","nullable":true,"maxLength":100,"example":"Клиентович"},"ucid":{"type":"string","description":"Идентификатор звонка в Avaya","nullable":false,"maxLength":6,"example":"1234"},"vdn":{"type":"string","description":"Номер телефона, на который поступил вызов","nullable":false,"maxLength":11,"example":"89998887766"},"beginDate":{"type":"string","format":"date-time","description":"Дата начала вызова в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"endDate":{"type":"string","format":"date-time","description":"Дата окончания вызова в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"changeDate":{"type":"string","format":"date-time","description":"Дата изменения вызова в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"callType":{"type":"string","description":"Тип вызова","enum":["INCOMING","OUTGOING"],"nullable":false,"example":"INCOMING"},"finalDate":{"type":"string","format":"date-time","description":"Дата и время завершения постобработки вызова Оператором в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"agent":{"type":"string","description":"Оператор (UPN из токена)","nullable":true,"maxLength":100,"example":"agent@vtb.ru"},"comment":{"type":"string","description":"Комментарий","nullable":true,"maxLength":1000,"example":"Отличный клиент"},"omiliaId":{"type":"string","description":"Идентификатор диалога в OMILIA","nullable":true,"maxLength":128,"example":"2c9192b17781366e017781393aa60003"},"omiliaBeginDate":{"type":"string","format":"date-time","description":"Дата и время начала диалога в OMILIA в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000+07Z"},"events":{"type":"array","description":"События","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/OutCallEventDto"}}},"required":["callId","globalCallId","conversationId","phoneNumber","clientId","lastName","firstName","middleName","ucid","vdn","beginDate","endDate","changeDate","callType","finalDate","agent","comment","omiliaId","omiliaBeginDate","events"]},"OutCallEventDto":{"type":"object","title":"OutCallEventDto","description":"Дто события","additionalProperties":false,"properties":{"eventType":{"type":"string","description":"Тип события (при отсутствии подтипа консультации выставить тип CONSULTATION)","enum":["CONSULTATION","INSTANT_TRANSFER","CONSULTING_TRANSFER","CONSULTING_WITHOUT_TRANSFER","TASK","NOTIFICATION"],"nullable":false,"example":"CONSULTATION"},"eventDate":{"type":"string","format":"date-time","description":"Дата события в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"topicId":{"type":"string","description":"Идентификатор версии тематики","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60015"},"productName":{"type":"string","description":"Задание на обзвон - Продукт","nullable":false,"maxLength":100,"example":"Кредит"},"templateId":{"type":"string","description":"Уведомление - Id шаблона","nullable":true,"maxLength":36,"example":"2c9192b17781366e017781393aa60015"},"orgName":{"type":"string","description":"Консультация - Название организации","nullable":true,"maxLength":100,"example":"ООО Компания"},"destinationNumber":{"type":"string","description":"Консультация - Номер телефона, на который произведен перевод","nullable":true,"maxLength":11,"example":"89998887766"},"status":{"type":"string","description":"Задание на обзвон - Статус завершения задачи","nullable":true,"maxLength":100,"example":"Выполнено"},"deliveryType":{"type":"string","description":"Уведомления - Способ доставки","enum":["EMAIL","SMS",null],"nullable":true,"example":"EMAIL"},"address":{"type":"string","description":"Уведомления - Номер телефона или адрес электронной почты, на который было отправлено уведомление","nullable":true,"maxLength":100,"example":"EMAIL"},"inn":{"type":"string","description":"ИНН ЮЛ из консультации или ИНН организации Лида из задания на обзвон","nullable":true,"maxLength":12,"example":"123141243"},"attributes":{"type":"array","description":"Атрибуты задания на обзвон","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/TaskAttributeDto"}},"consultationStatusName":{"type":"string","description":"Название статуса консультации","nullable":true,"maxLength":150,"example":"Консультация"}},"required":["eventType","eventDate","topicId","productName","templateId","orgName","destinationNumber","status","deliveryType","address"]},"PagedResponse":{"type":"object","title":"PagedResponse","description":"Результат поиска","additionalProperties":false,"properties":{"total":{"type":"integer","description":"Общее количество элементов","nullable":false,"minimum":0,"maximum":9999999,"example":1000},"page":{"type":"integer","description":"Номер страницы","nullable":false,"minimum":0,"maximum":999999,"example":1},"data":{"type":"array","description":"Результат поиска","nullable":false,"maxItems":1000000,"items":{"$ref":"#/components/schemas/OutCallDto"}}},"required":["total","page","data"]},"PagedConsultationStatusResponse":{"type":"object","title":"PagedConsultationStatusResponse","description":"Результат поиска статусов консультаций","additionalProperties":false,"properties":{"total":{"type":"integer","description":"Общее количество элементов","nullable":false,"minimum":0,"maximum":9999999,"example":1000},"page":{"type":"integer","description":"Номер страницы","nullable":false,"minimum":0,"maximum":999999,"example":1},"data":{"type":"array","description":"Результат поиска","nullable":false,"maxItems":1000000,"items":{"$ref":"#/components/schemas/ConsultationStatusDto"}}},"required":["total","page","data"]},"InConsultationDto":{"type":"object","title":"InConsultationDto","description":"Дто для создания консультации","additionalProperties":false,"properties":{"intent":{"type":"string","description":"Интент","nullable":true,"maxLength":255,"example":"TEXT"},"topicId":{"type":"string","description":"Идентификатор версии тематики","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60015"},"topicCode":{"type":"string","description":"Идентификатор тематики","nullable":false,"maxLength":36,"example":"5547"},"topicDate":{"type":"string","format":"date-time","description":"Дата и время выбора тематики в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"orgId":{"type":"string","description":"Идентификатор ЮЛ в Карточке ЮЛ","nullable":true,"maxLength":36,"example":"2c9192b17781366e017781393aa60015"},"orgInn":{"type":"string","description":"ИНН ЮЛ","nullable":true,"maxLength":12,"example":"342564563454"},"orgKpp":{"type":"string","description":"КПП ЮЛ","nullable":true,"maxLength":9,"example":"32452344"},"orgName":{"type":"string","description":"Полное название организации ЮЛ","nullable":true,"maxLength":500,"example":"ООО Компания"},"authFlag":{"type":"boolean","description":"Признак аутентификации - прошел или нет клиент аутентификацию","nullable":false,"example":true},"destinationNumber":{"type":"string","description":"Номер перевода вызова","nullable":true,"maxLength":30,"example":"79998887766"},"destinationType":{"type":"string","description":"Тип перевода вызова (если никакой подтип не выбран - выставить тип CONSULTATION)","enum":["CONSULTATION","INSTANT_TRANSFER","CONSULTING_TRANSFER","CONSULTING_WITHOUT_TRANSFER"],"nullable":false,"example":"CONSULTATION"},"clientSegment":{"type":"string","description":"ИНН ЮЛ - организация, по вопросу которой консультировался клиент","nullable":true,"maxLength":50,"example":"366406958397"},"statusId":{"type":"string","description":"Идентификатор статуса консультации","nullable":true,"maxLength":36,"example":"2c9192b17781366e017781393aa60015"},"statusName":{"type":"string","description":"Название статуса консультации","nullable":true,"maxLength":150,"example":"Консультация"}},"required":["intent","topicId","topicCode","topicDate","orgId","orgInn","orgKpp","orgName","authFlag","destinationNumber","destinationType","clientSegment"]},"InTaskDto":{"type":"object","title":"InTaskDto","description":"Дто для создания задания на обзвон","additionalProperties":false,"properties":{"campaign":{"type":"string","description":"Название кампании на обзвон","nullable":false,"maxLength":500,"example":"Кампания на обзвон"},"productName":{"type":"string","description":"Наименование продукта, которым заинтересовался лид","nullable":false,"maxLength":500,"example":"Продукт"},"leadInn":{"type":"string","description":"ИНН организации Лида","nullable":true,"maxLength":12,"example":"253658674837"},"status":{"type":"string","description":"Статус задания, указанный оператором при завершении задания в блоке Постобработка","nullable":false,"maxLength":100,"example":"Выполнено"},"callbackDate":{"type":"string","format":"date-time","description":"Дата и время перезвона в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"attributes":{"type":"array","description":"Атрибуты задания на обзвон","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/TaskAttributeDto"}}},"required":["campaign","productName","leadInn","status","callbackDate","attributes"]},"TaskAttributeDto":{"type":"object","title":"InTaskAttributeDto","description":"Дто атрибутов задания на обзвон","additionalProperties":false,"properties":{"name":{"type":"string","description":"Название атрибута","nullable":false,"maxLength":500,"example":"Название атрибута"},"value":{"type":"string","description":"Значение атрибута","nullable":true,"maxLength":100,"example":"Значение атрибута"}},"required":["name","value"]},"PostProcessingDto":{"type":"object","title":"PostProcessingDto","additionalProperties":false,"description":"Постобработка","properties":{"clientId":{"type":"string","description":"Идентификатор клиента в сервисе Карточка ФЛ","nullable":false,"maxLength":36,"example":"34t2356245u67452345u677t6"},"lastName":{"type":"string","description":"Фамилия клиента","nullable":true,"maxLength":100,"example":"Иванов"},"firstName":{"type":"string","description":"Имя клиента","nullable":true,"maxLength":100,"example":"Иван"},"middleName":{"type":"string","description":"Отчество клиента","nullable":true,"maxLength":100,"example":"Иванович"},"finalDate":{"type":"string","format":"date-time","description":"Дата и время завершения постобработки вызова Оператором в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"agent":{"type":"string","description":"Оператор (UPN из токена)","nullable":true,"maxLength":100,"example":"agent@vtb.ru"},"comment":{"type":"string","description":"Комментарий","nullable":true,"maxLength":1000,"example":"Отличный клиент"},"consultations":{"type":"array","description":"Консультации","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/InConsultationDto"}},"task":{"$ref":"#/components/schemas/InTaskDto"}},"required":["clientId","lastName","firstName","middleName","finalDate","agent","comment","consultations","task"]},"OutSearchByAgentDto":{"type":"object","title":"OutSearchByAgentDto","description":"DTO с вызовами для оператора","additionalProperties":false,"properties":{"lastName":{"type":"string","description":"Фамилия клиента","nullable":true,"maxLength":100,"example":"Иванов"},"firstName":{"type":"string","description":"Имя клиента","nullable":true,"maxLength":100,"example":"Иван"},"middleName":{"type":"string","description":"Отчество клиента","nullable":true,"maxLength":100,"example":"Иванович"},"orgName":{"type":"string","description":"Название организации","nullable":true,"maxLength":500,"example":"ООО Рога и копыта"},"orgInn":{"type":"string","description":"Инн организации","nullable":true,"maxLength":12,"example":"1234567890"},"phoneNumber":{"type":"string","description":"Номер телефона","nullable":true,"maxLength":11,"example":"89998887766"},"beginDate":{"type":"string","format":"date-time","description":"Дата и время начала вызова в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-12T17:00:00.000Z"},"status":{"type":"string","description":"Статус завершения задания на обзвон","nullable":true,"maxLength":100,"example":"В процессе"},"callType":{"type":"string","description":"Тип вызова. Отображаются в виде иконок","enum":["INCOMING","OUTGOING",null],"nullable":true,"example":"INCOMING"},"product":{"type":"string","description":"Продукт для задачи на обзвон или id тематики для консультации","nullable":true,"maxLength":200,"example":"Кредит"},"leadLink":{"type":"string","description":"Ссылка на ПКБ","nullable":true,"maxLength":100,"example":"https://cd.vtb.grp/cd/#/lead/{LEAD_ID}"}},"required":["lastName","firstName","middleName","orgName","phoneNumber","beginDate","status","callType","product","leadLink"]},"TopTopicCriteria":{"type":"object","title":"TopTopicCriteria","description":"DTO для построения графика Топ тематик обращения","additionalProperties":false,"properties":{"startDate":{"type":"string","format":"date","description":"Начало периода - дата в формате yyyy-MM-dd","nullable":false,"maxLength":255,"example":"2021-05-26"},"startTime":{"type":"string","format":"time","description":"Начало периода - время в формате HH:mm","nullable":true,"maxLength":255,"example":"12:00:00"},"endDate":{"type":"string","format":"date","description":"Конец периода - дата в формате yyyy-MM-dd","nullable":false,"maxLength":255,"example":"2021-05-26"},"endTime":{"type":"string","format":"time","description":"Конец периода - время в формате HH:mm","nullable":true,"maxLength":255,"example":"13:00:00"},"topics":{"type":"array","description":"Список кодов тематик 1 уровня","nullable":true,"maxItems":1000000,"items":{"type":"string","maxLength":4000,"example":"daa371f2-ac65-11eb-8529-0242ac130001"}}},"required":["startDate","startTime","endDate","endTime","topics"]},"TopTopicResultDto":{"type":"object","title":"TopTopicResultDto","description":"DTO для возврата данных для графика Топ тематик обращений","additionalProperties":false,"properties":{"data":{"type":"array","description":"Данные для графика","nullable":false,"maxItems":1000000,"items":{"$ref":"#/components/schemas/TopTopicDto"}}}},"TopTopicDto":{"type":"object","title":"TopTopicDto","description":"Дто для построения графика Топ тематик обращений","additionalProperties":false,"properties":{"topicPath":{"type":"string","description":"Полное название тематики в формате «Тематика 1 ур. / Тематика 2 ур. / Тематика 3 ур.»","nullable":false,"maxLength":1000,"example":"ВТБ Бизнес Онлайн / Платежные поручения / Не поступила СМС"},"calls":{"type":"integer","description":"Количество вызовов в группировке по тематике","nullable":false,"minimum":1,"maximum":2147483647,"example":10},"percent":{"type":"number","format":"double","description":"Процент вызовов в группировке от общего количества вызовов","nullable":true,"minimum":0,"maximum":100,"example":30.5},"aht":{"type":"number","format":"double","description":"Среднее время обработки вызова в группировке по тематике","nullable":false,"minimum":0,"maximum":214748364700000,"example":123.123123}},"required":["topicPath","calls","percent","aht"]},"SaveCallDto":{"type":"object","title":"SaveCallDto","description":"Dto для создания вызова","additionalProperties":false,"properties":{"conversationId":{"type":"string","description":"Идентификатор обращения","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60003"},"callId":{"type":"string","description":"Идентификатор звонка (внутренний)","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60004"},"ucid":{"type":"string","description":"Идентификатор первого звонка (UCID)","nullable":false,"maxLength":6,"example":"1234"},"globalCallId":{"type":"string","description":"Глобальный идентификатор звонка","nullable":false,"maxLength":20,"example":"2c9192b17781366e01"},"vdn":{"type":"string","description":"Номер, на который совершен вызов","nullable":false,"maxLength":11,"example":"89998887766"},"callType":{"type":"string","description":"Направление вызова","enum":["INCOMING","OUTGOING"],"nullable":false,"example":"INCOMING"},"conversationDateTime":{"type":"string","format":"date-time","description":"Дата/время обращения в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"phoneNumber":{"type":"string","description":"Номер телефона","nullable":false,"maxLength":11,"example":"79998887765"},"agent":{"type":"string","description":"Оператор (UPN из токена)","nullable":true,"maxLength":100,"example":"agent@vtb.ru"}},"required":["conversationId","callId","ucid","globalCallId","vdn","callType","conversationDateTime","phoneNumber","agent"]},"UpdateConversationDto":{"type":"object","title":"UpdateConversationDto","description":"Обновление обращения","additionalProperties":false,"properties":{"endDate":{"type":"string","format":"date-time","description":"Дата и время окончания в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"clientId":{"type":"string","description":"Идентификатор клиента","nullable":true,"maxLength":36,"example":"2c9192b17781366e017781393aa60003"},"lastName":{"type":"string","description":"Фамилия клиента","nullable":true,"maxLength":100,"example":"Иванов"},"firstName":{"type":"string","description":"Имя клиента","nullable":true,"maxLength":100,"example":"Иван"},"middleName":{"type":"string","description":"Отчество клиента","nullable":true,"maxLength":100,"example":"Иванович"},"calls":{"type":"array","description":"Вызовы","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/InCallDto"}}},"required":["endDate","clientId","lastName","firstName","middleName","calls"]},"UpdateCallDto":{"type":"object","title":"UpdateCallDto","description":"Обновление вызова","additionalProperties":false,"properties":{"endDate":{"type":"string","format":"date-time","description":"Дата окончания вызова в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"agent":{"type":"string","description":"Оператор (UPN из токена)","nullable":true,"maxLength":100,"example":"agent@vtb.ru"},"omiliaId":{"type":"string","description":"Идентификатор диалога в OMILIA","nullable":true,"maxLength":128,"example":"2c9192b17781366e017781393aa60003"},"omiliaBeginDate":{"type":"string","format":"date-time","description":"Дата и время начала диалога в OMILIA в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"consultations":{"type":"array","description":"Консультации","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/InConsultationDto"}},"task":{"$ref":"#/components/schemas/InTaskDto"},"notifications":{"type":"array","description":"Уведомления","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/InNotificationDto"}}},"required":["endDate","agent","omiliaId","omiliaBeginDate","consultations","task","notifications"]},"InCallDto":{"type":"object","title":"InCallDto","description":"Дто для создания вызова","additionalProperties":false,"properties":{"callId":{"type":"string","description":"Идентификатор звонка из мониторинга","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60533"},"ucid":{"type":"string","description":"Идентификатор звонка в Avaya","nullable":false,"maxLength":6,"example":"1234"},"globalCallId":{"type":"string","description":"Глобальный идентификатор звонка","nullable":false,"maxLength":20,"example":"2c9192b17781366e01"},"vdn":{"type":"string","description":"Номер телефона, на который поступил вызов","nullable":false,"maxLength":11,"example":"89998887766"},"beginDate":{"type":"string","format":"date-time","description":"Дата начала вызова в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"endDate":{"type":"string","format":"date-time","description":"Дата окончания вызова в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"callType":{"type":"string","description":"Тип вызова","enum":["INCOMING","OUTGOING"],"nullable":false,"example":"INCOMING"},"finalDate":{"type":"string","format":"date-time","description":"Дата и время завершения постобработки вызова Оператором в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"agent":{"type":"string","description":"Оператор (UPN из токена)","nullable":true,"maxLength":100,"example":"agent@vtb.ru"},"comment":{"type":"string","description":"Комментарий","nullable":true,"maxLength":300,"example":"Отличный клиент"},"omiliaId":{"type":"string","description":"Идентификатор диалога в OMILIA","nullable":true,"maxLength":128,"example":"2c9192b17781366e017781393aa60003"},"omiliaBeginDate":{"type":"string","format":"date-time","description":"Дата и время начала диалога в OMILIA в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"consultations":{"type":"array","description":"Консультации","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/InConsultationDto"}},"task":{"$ref":"#/components/schemas/InTaskDto"},"notifications":{"type":"array","description":"Уведомления","nullable":true,"maxItems":1000000,"items":{"$ref":"#/components/schemas/InNotificationDto"}}},"required":["callId","ucid","globalCallId","vdn","beginDate","endDate","callType","finalDate","agent","comment","omiliaId","omiliaBeginDate","consultations","task","notifications"]},"InTaskAttributeDto":{"type":"object","title":"InTaskAttributeDto","description":"Дто для создания атрибутов задания на обзвон","additionalProperties":false,"properties":{"name":{"type":"string","description":"Название атрибута","nullable":false,"maxLength":500,"example":"Название атрибута"},"value":{"type":"string","description":"Значение атрибута","nullable":true,"maxLength":100,"example":"Значение атрибута"}},"required":["name","value"]},"InNotificationDto":{"type":"object","title":"InNotificationDto","description":"Дто для создания уведомления","additionalProperties":false,"properties":{"notificationDate":{"type":"string","format":"date-time","description":"Дата и время уведомления в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"templateId":{"type":"string","description":"Идентификатор шаблона","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60333"},"topicId":{"type":"string","description":"Идентификатор тематики","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60333"},"deliveryType":{"type":"string","description":"Способ доставки","nullable":false,"enum":["EMAIL","SMS"],"example":"EMAIL"},"address":{"type":"string","description":"Номер телефона или адрес электронной почты, на который было отправлено уведомление","nullable":false,"maxLength":100,"example":"mail@mail.com"},"notificationSource":{"type":"string","description":"Источник уведомления","nullable":false,"enum":["ARM","IVR"],"example":"ARM"},"notificationText":{"type":"string","description":"Текст уведомления","nullable":false,"maxLength":4000,"example":"Уведомление"},"clientId":{"type":"string","description":"Идентификатор ЮЛ в Карточке ЮЛ","nullable":true,"maxLength":36,"example":"421764dc-ae97-4244-aa98-7b0602e55618"},"clientInn":{"type":"string","description":"ИНН ЮЛ","nullable":true,"maxLength":12,"example":"124579835147"},"clientKpp":{"type":"string","description":"КПП ЮЛ","nullable":true,"maxLength":9,"example":"567186428"},"clientName":{"type":"string","description":"Полное название ЮЛ","nullable":true,"maxLength":500,"example":"Организация Содействия"},"clientSegment":{"type":"string","description":"Сегмент клиента ЮЛ","nullable":true,"maxLength":50,"example":"366406958397"},"clientAuthFlag":{"type":"boolean","description":"Признак аутентификации - прошел или нет клиент аутентификацию","nullable":false,"example":true}},"required":["notificationDate","templateId","topicId","deliveryType","address","notificationSource","notificationText","clientId","clientInn","clientKpp","clientName","clientSegment","clientAuthFlag"]},"responses.success":{"type":"object","description":"Успешное выполнение","additionalProperties":false,"properties":{"result":{"type":"string","enum":["success"],"description":"Успешное выполнение","example":"success"}},"required":["result"]},"responses.error":{"type":"object","description":"Ошибка сервера","additionalProperties":false,"properties":{"status":{"type":"string","description":"Ошибка сервера","maxLength":4,"example":"500"}},"required":["status"]},"responses.badRequest":{"type":"object","description":"Bad request","additionalProperties":false,"properties":{"timestamp":{"type":"string","format":"date-time","description":"Время ошибки","maxLength":255,"example":"2021-04-29T08:19:09.2116423"},"status":{"type":"string","description":"Статус","maxLength":4,"example":"400"},"error":{"type":"string","description":"Описание ошибки","maxLength":150,"example":"Bad Request"}},"required":["timestamp","status","error"]},"ConsultationStatusDto":{"type":"object","title":"ConsultationStatusDto","description":"Дто для получение информации о статусах консультаций","additionalProperties":false,"properties":{"statusId":{"type":"string","description":"Идентификатор статуса консультации","nullable":false,"maxLength":36,"example":"2c9192b17781366e017781393aa60015"},"statusName":{"type":"string","description":"Название статуса консультации","nullable":false,"maxLength":150,"example":"Консультация"},"description":{"type":"string","description":"Описание статуса консультации","nullable":true,"maxLength":200,"example":"Передана консультация/предоставлена информация"},"isActual":{"type":"boolean","description":"Признак актуальности - актуален статус или нет","nullable":false,"example":true},"createDate":{"type":"string","format":"date-time","description":"Время создания статуса консультации в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"lastUpdateDate":{"type":"string","format":"date-time","description":"Время последнего изменения статуса консультации в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":false,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"}},"required":["statusId","statusName","isActual","lastUpdateDate","createDate"]},"InputConsultationStatusDto":{"type":"object","title":"InputConsultationStatusDto","description":"Дто для сохранения информации о статусах консультаций","additionalProperties":false,"properties":{"statusId":{"type":"string","description":"Идентификатор статуса консультации","nullable":true,"maxLength":36,"example":"2c9192b17781366e017781393aa60015"},"statusName":{"type":"string","description":"Название статуса консультации","nullable":false,"maxLength":150,"example":"Консультация"},"description":{"type":"string","description":"Описание статуса консультации","nullable":true,"maxLength":200,"example":"Передана консультация/предоставлена информация"},"isActual":{"type":"boolean","description":"Признак актуальности - актуален статус или нет","nullable":false,"example":true},"createDate":{"type":"string","format":"date-time","description":"Время создания статуса консультации в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"},"lastUpdateDate":{"type":"string","format":"date-time","description":"Время последнего изменения статуса консультации в формате yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","nullable":true,"maxLength":255,"example":"2021-02-08T17:00:00.000Z"}},"required":["statusName","isActual"]},"CriteriaDto":{"type":"object","title":"CriteriaDto","description":"Дто для поиска","additionalProperties":false,"properties":{"sortType":{"type":"string","description":"Тип сортировки","nullable":true,"enum":["ASC","DESC",null],"example":"ASC"},"sortColumn":{"type":"string","description":"Название поля для сортировки","nullable":true,"maxLength":150},"pageNumber":{"type":"integer","description":"Номер нужной страницы","nullable":false,"minimum":1,"maximum":999999,"example":1},"pageSize":{"type":"integer","description":"Размер страницы","nullable":false,"minimum":1,"maximum":999999,"example":10}},"required":["pageNumber","pageSize"]},"ConsultationStatusListDto":{"type":"object","title":"ConsultationStatusListDto","description":"Дто для списка статусов консультаций","additionalProperties":false,"properties":{"statusesList":{"type":"array","description":"Список статусов консультаций","nullable":false,"maxItems":1000000,"items":{"$ref":"#/components/schemas/ConsultationStatusDto"}}},"required":["statusesList"]},"AutoClosePostprocessingDto":{"type":"object","title":"AutoclosePostprocessingDto","description":"Дто для полей автозакрытия окна постобработки","additionalProperties":false,"properties":{"autoClose":{"type":"boolean","description":"Автозакрытие постобработки","nullable":false,"example":true},"autoCloseTime":{"type":"integer","description":"Время до автозакртытия постобработки в секундах","nullable":true,"minimum":1,"maximum":9999,"example":10}},"required":["autoClose"]},"UpdateConsultationDto":{"type":"object","title":"UpdateConsultationDto","description":"Общее ДТО консультации для методов обновления","additionalProperties":false,"required":["consultations"],"properties":{"consultations":{"type":"array","description":"Консультации","maxItems":1000000,"items":{"$ref":"#/components/schemas/ContextConsultationHeadDto"},"nullable":true},"ivrData":{"$ref":"#/components/schemas/ContextIvrDto"}}},"ContextConsultationHeadDto":{"type":"object","title":"ContextConsultationHeadDto","description":"Общее ДТО консультации для методов получения контекста","additionalProperties":false,"required":["intent","topicId","creationDateTime","destinationNumber","destinationType","inn"],"properties":{"intent":{"type":"string","description":"Интент","maxLength":100,"nullable":true,"example":"intent"},"topicId":{"type":"string","description":"Идентификатор тематики","maxLength":36,"nullable":true,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"},"creationDateTime":{"type":"string","format":"date-time","description":"Дата и время создания консультации, она же - выбора тематики в АРМ","nullable":false,"example":"1644235221000"},"destinationNumber":{"type":"string","description":"Номер, на который производится перевод (или VDN) в случае тематики перевода","maxLength":100,"nullable":true,"example":"+79998887766"},"destinationType":{"type":"string","description":"Тип перевода вызова (если никакой подтип не выбран - выставить тип CONSULTATION)","enum":["CONSULTATION","INSTANT_TRANSFER","CONSULTING_TRANSFER","CONSULTING_WITHOUT_TRANSFER"],"nullable":false,"example":"CONSULTATION"},"inn":{"type":"string","description":"ИНН организации, техническое поле, используемое для определения организации во время обновления контекста при выборе тематики","maxLength":100,"nullable":true,"example":"7708503727"},"comment":{"type":"string","description":"Комментарий","nullable":true,"maxLength":500,"example":"Отличный клиент"},"consultationStatusId":{"type":"string","description":"Идентификатор статуса консультации","nullable":true,"maxLength":36,"example":"2c9192b17781366e017781393aa60015"},"consultationStatusName":{"type":"string","description":"Название статуса консультации","nullable":true,"maxLength":150,"example":"Консультация"}}},"ContextIvrDto":{"type":"object","title":"ContextIvrDto","description":"Общее ДТО данных из IVR для методов получения контекста","additionalProperties":false,"required":["dialogId","dialogDate"],"properties":{"dialogId":{"type":"string","description":"Идентификатор диалога","maxLength":50,"nullable":true,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"},"dialogDate":{"type":"string","format":"date-time","description":"Дата и время начала диалога","nullable":true,"example":"2021-01-19T16:40:45.791497+03:00"}}},"TopTopicsListDto":{"type":"object","title":"TopTopicsListDto","description":"DTO результата топа тематик","additionalProperties":false,"properties":{"data":{"type":"array","description":"Результат поиска","nullable":false,"maxItems":1000000,"items":{"$ref":"#/components/schemas/TopicBaseInfo"}}}},"TopicBaseInfo":{"type":"object","title":"TopicBaseInfo","description":"Название и код тематики","additionalProperties":false,"properties":{"code":{"type":"string","description":"Код тематики","maxLength":36,"nullable":false,"example":"tre6ba2d-0bf8-4b9f-8dea-76278d90c949"},"path":{"type":"string","description":"Именной путь тематики","maxLength":500,"nullable":true,"example":"Тематика 1 уровня / Тематика 2 уровня / Тематика 3 уровня"},"description":{"type":"string","description":"Описание тематики","maxLength":1000,"nullable":true,"example":"Описание тематики"}}},"NotificationContactDto":{"type":"object","title":"NotificationContactDto","description":"Контакты из уведомлении","additionalProperties":false,"properties":{"address":{"type":"string","description":"номер телефона или адрес почты","maxLength":100,"nullable":false,"example":"mail@example.com"},"deliveryType":{"type":"string","description":"тип адреса отправки","nullable":true,"enum":["SMS","EMAIL",null],"example":"SMS"}}},"NotificationContactListDto":{"type":"object","title":"NotificationContactListDto","description":"Список контактов уведомлении","additionalProperties":false,"properties":{"contacts":{"type":"array","description":"Список контактов уведомлении","maxItems":1000000,"items":{"$ref":"#/components/schemas/NotificationContactDto"}}}},"ConsultationStatusUpdateDto":{"type":"object","title":"UpdateActualStatusDto","description":"Статус консультации","additionalProperties":false,"required":["statusId"],"properties":{"statusId":{"type":"string","description":"Идентификатор статуса консультации","maxLength":36,"example":"2c9192b17781366e017781393aa60015"}}},"CronDto":{"type":"object","title":"CronDto","description":"Наименование периода","additionalProperties":false,"properties":{"id":{"type":"string","description":"Идентификатор","nullable":false,"maxLength":36,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"},"name":{"type":"string","description":"Наименование периода","nullable":false,"maxLength":255,"example":"1 день"}}},"SchedulerTaskDto":{"type":"object","title":"SchedulerTaskDto","description":"Запрос на создание задачи в планировщике","additionalProperties":false,"properties":{"name":{"type":"string","description":"Наименование задачи","nullable":false,"maxLength":255,"example":"Выгрузка истории обращений в стриминг"},"cronId":{"type":"string","description":"Идентификатор периода","nullable":false,"maxLength":36,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"},"uploadDepth":{"type":"integer","description":"Глубина выгрузки","nullable":false,"minimum":0,"maximum":1000000,"example":1000}}},"FullSchedulerTaskDto":{"type":"object","title":"FullSchedulerTaskDto","description":"Полное описание задачи планировщика","additionalProperties":false,"properties":{"id":{"type":"string","description":"Идентификатор задачи в бд","nullable":false,"maxLength":36,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"},"taskId":{"type":"string","description":"Идентификатор задачи из планировщика","nullable":false,"maxLength":255,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"},"name":{"type":"string","description":"Наименование задачи","nullable":false,"maxLength":255,"example":"Выгрузка истории обращений в стриминг"},"uploadDepth":{"type":"integer","description":"Глубина выгрузки","nullable":false,"minimum":0,"maximum":1000000,"example":1000},"cronId":{"type":"string","description":"Идентификатор периода","nullable":false,"maxLength":36,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"},"cronName":{"type":"string","description":"Наименование периода","nullable":false,"maxLength":255,"example":"1 день"},"onPause":{"type":"boolean","description":"Признак постановки задачи на паузу","nullable":false,"maxLength":255,"example":false}}},"StreamDictionaryDto":{"type":"object","title":"StreamDictionaryDto","description":"Поднятие версии","additionalProperties":false,"properties":{"version":{"type":"boolean","description":"флаг для поднятия версии","nullable":false,"maxLength":10,"example":true}}},"StreamStatusDto":{"type":"object","title":"StreamStatusDto","description":"Статус выгрузки","additionalProperties":false,"properties":{"flag":{"type":"boolean","description":"флаг выгрузки","nullable":false,"maxLength":10,"example":true}}},"UploadSwitchDto":{"type":"object","title":"UploadSwitchDto","description":"Объект с данными для переключения статуса выгрузки","additionalProperties":false,"properties":{"id":{"type":"string","description":"id записи","nullable":false,"maxLength":255,"example":"ag22ba2n-0448-4b9f-8dea-3348d56b0451"},"flag":{"type":"boolean","description":"статус выгрузки","nullable":false,"maxLength":10,"example":true}}},"UploadDatesDto":{"type":"object","title":"UploadDatesDto","description":"Объект с данными для выгрузки за период","additionalProperties":false,"properties":{"dateFrom":{"type":"string","description":"Дата начала выгрузки","nullable":false,"maxLength":255,"example":"2022-03-03 14:00:00.000"},"dateTo":{"type":"string","description":"Дата окончания выгрузки","nullable":false,"maxLength":255,"example":"2022-03-03 14:00:00.000"},"version":{"type":"boolean","description":"Признак поднятия выгрузки","nullable":false,"maxLength":10,"example":true}}},"InProcessStreamListDto":{"type":"object","title":"InProcessStreamListDto","description":"DTO со списком периодов в работе","additionalProperties":false,"required":["inProcessStreamList"],"properties":{"inProcessStreamList":{"type":"array","maxItems":10000,"description":"Список периодов в работе","items":{"$ref":"#/components/schemas/InProcessStreamDto"},"nullable":true}}},"UnloadStreamListDto":{"type":"object","title":"UnloadStreamListDto","description":"DTO со списком невыгруженных периодов","additionalProperties":false,"required":["unloadStreamList"],"properties":{"unloadStreamList":{"type":"array","maxItems":10000,"description":"Список невыгруженных периодов","items":{"$ref":"#/components/schemas/UnloadStreamDto"},"nullable":true}}},"UnloadStreamDto":{"type":"object","title":"UnloadStreamDto","description":"Объект с данными о невыгруженныхх периодах","additionalProperties":false,"properties":{"dateFrom":{"type":"string","description":"Дата начала выгрузки","nullable":false,"maxLength":255,"example":"2022-03-03 14:00:00.000"},"dateTo":{"type":"string","description":"Дата окончания выгрузки","nullable":false,"maxLength":255,"example":"2022-03-03 14:00:00.000"}}},"InProcessStreamDto":{"type":"object","title":"InProcessStreamDto","description":"Объект с данными о периодах в работе","additionalProperties":false,"properties":{"dateFrom":{"type":"string","description":"Дата начала выгрузки","nullable":false,"maxLength":255,"example":"2022-03-03 14:00:00.000"},"dateTo":{"type":"string","description":"Дата окончания выгрузки","nullable":false,"maxLength":255,"example":"2022-03-03 14:00:00.000"}}}},"responses":{"success":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/responses.success"}}}},"error":{"description":"Ошибка сервера","content":{"application/json":{"schema":{"$ref":"#/components/schemas/responses.error"}}}},"badRequest":{"description":"Ошибка запроса","content":{"application/json":{"schema":{"$ref":"#/components/schemas/responses.badRequest"}}}},"PagedResponse":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedResponse"}}}},"OutSearchByAgentDto":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutSearchByAgentResultDto"}}}},"TopTopicResultDto":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopTopicResultDto"}}}},"ConsultationStatusDto":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationStatusDto"}}}},"ConsultationStatusListDto":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationStatusListDto"}}}},"PagedConsultationStatusResponse":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedConsultationStatusResponse"}}}},"AutoClosePostprocessingResponse":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoClosePostprocessingDto"}}}},"TopTopicsListDto":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopTopicsListDto"}}}},"NotificationContactListDto":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationContactListDto"}}}}},"securitySchemes":{"EpaAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}