a711bda83c2e62ec6ae6f46a5ccc519c717c5e62
[motion2.git] / server / api / openchannelInteraction / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x1678=['../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','getMessages','/:id/download','post','create','addMessage','/:id/tags','openchannel','openchannelinteraction:addtags','addTags','put','tracked','delete','openchannelinteraction:destroy','exports','util','path','fs-extra'];(function(_0x5162a7,_0x43f3b3){var _0x3a9fa1=function(_0x1a8534){while(--_0x1a8534){_0x5162a7['push'](_0x5162a7['shift']());}};_0x3a9fa1(++_0x43f3b3);}(_0x1678,0xf0));var _0x8167=function(_0x464519,_0x164486){_0x464519=_0x464519-0x0;var _0x5b6208=_0x1678[_0x464519];return _0x5b6208;};'use strict';var multer=require('multer');var util=require(_0x8167('0x0'));var path=require(_0x8167('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x8167('0x2'));var auth=require(_0x8167('0x3'));var interaction=require(_0x8167('0x4'));var config=require(_0x8167('0x5'));var controller=require(_0x8167('0x6'));router[_0x8167('0x7')]('/',auth[_0x8167('0x8')](),controller[_0x8167('0x9')]);router['get'](_0x8167('0xa'),auth['isAuthenticated'](),controller[_0x8167('0xb')]);router['get'](_0x8167('0xc'),auth['isAuthenticated'](),controller['show']);router['get']('/:id/messages',auth[_0x8167('0x8')](),controller[_0x8167('0xd')]);router[_0x8167('0x7')](_0x8167('0xe'),auth[_0x8167('0x8')](),controller['download']);router[_0x8167('0xf')]('/',auth[_0x8167('0x8')](),controller[_0x8167('0x10')]);router[_0x8167('0xf')]('/:id/messages',auth[_0x8167('0x8')](),controller[_0x8167('0x11')]);router[_0x8167('0xf')](_0x8167('0x12'),auth['isAuthenticated'](),interaction['tracked'](_0x8167('0x13'),_0x8167('0x14')),controller[_0x8167('0x15')]);router[_0x8167('0x16')](_0x8167('0xc'),auth[_0x8167('0x8')](),interaction[_0x8167('0x17')](_0x8167('0x13'),'openchannelinteraction:update'),controller['update']);router[_0x8167('0x18')](_0x8167('0xc'),auth[_0x8167('0x8')](),interaction[_0x8167('0x17')](_0x8167('0x13'),_0x8167('0x19')),controller['destroy']);router[_0x8167('0x18')]('/:id/tags',auth[_0x8167('0x8')](),controller['removeTags']);module[_0x8167('0x1a')]=router;