0aad93d2800bbd303da8ff180030c169227d4836
[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 _0xa2ed=['express','../../components/auth/service','../../components/interaction/service','./openchannelInteraction.controller','isAuthenticated','describe','get','/:id','/:id/messages','getMessages','download','post','create','addMessage','/:id/tags','openchannelinteraction:addtags','addTags','put','tracked','openchannel','openchannelinteraction:destroy','destroy','delete','removeTags','exports','multer','path','connect-timeout'];(function(_0x59fe94,_0x29f139){var _0x2cdc82=function(_0x1c049c){while(--_0x1c049c){_0x59fe94['push'](_0x59fe94['shift']());}};_0x2cdc82(++_0x29f139);}(_0xa2ed,0x14d));var _0xda2e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xa2ed[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xda2e('0x0'));var util=require('util');var path=require(_0xda2e('0x1'));var timeout=require(_0xda2e('0x2'));var express=require(_0xda2e('0x3'));var router=express['Router']();var auth=require(_0xda2e('0x4'));var interaction=require(_0xda2e('0x5'));var config=require('../../config/environment');var controller=require(_0xda2e('0x6'));router['get']('/',auth[_0xda2e('0x7')](),controller['index']);router['get']('/describe',auth[_0xda2e('0x7')](),controller[_0xda2e('0x8')]);router[_0xda2e('0x9')](_0xda2e('0xa'),auth[_0xda2e('0x7')](),controller['show']);router[_0xda2e('0x9')](_0xda2e('0xb'),auth['isAuthenticated'](),controller[_0xda2e('0xc')]);router[_0xda2e('0x9')]('/:id/download',auth[_0xda2e('0x7')](),controller[_0xda2e('0xd')]);router[_0xda2e('0xe')]('/',auth[_0xda2e('0x7')](),controller[_0xda2e('0xf')]);router[_0xda2e('0xe')](_0xda2e('0xb'),auth['isAuthenticated'](),controller[_0xda2e('0x10')]);router['post'](_0xda2e('0x11'),auth[_0xda2e('0x7')](),interaction['tracked']('openchannel',_0xda2e('0x12')),controller[_0xda2e('0x13')]);router[_0xda2e('0x14')]('/:id',auth[_0xda2e('0x7')](),interaction[_0xda2e('0x15')](_0xda2e('0x16'),'openchannelinteraction:update'),controller['update']);router['delete'](_0xda2e('0xa'),auth[_0xda2e('0x7')](),interaction['tracked'](_0xda2e('0x16'),_0xda2e('0x17')),controller[_0xda2e('0x18')]);router[_0xda2e('0x19')]('/:id/tags',auth['isAuthenticated'](),controller[_0xda2e('0x1a')]);module[_0xda2e('0x1b')]=router;