Built motion from commit da617fac.|2.6.6
[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 _0xbbd0=['download','post','addMessage','openchannel','openchannelinteraction:addtags','put','tracked','update','openchannelinteraction:destroy','destroy','delete','/:id/tags','removeTags','exports','multer','util','express','fs-extra','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','describe','/:id','show','/:id/messages','/:id/download'];(function(_0x3f34aa,_0x2b059a){var _0x5ed27e=function(_0x30be2e){while(--_0x30be2e){_0x3f34aa['push'](_0x3f34aa['shift']());}};_0x5ed27e(++_0x2b059a);}(_0xbbd0,0xd9));var _0x0bbd=function(_0x1409da,_0xe8f1cc){_0x1409da=_0x1409da-0x0;var _0x3e648c=_0xbbd0[_0x1409da];return _0x3e648c;};'use strict';var multer=require(_0x0bbd('0x0'));var util=require(_0x0bbd('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x0bbd('0x2'));var router=express['Router']();var fs_extra=require(_0x0bbd('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x0bbd('0x4'));var config=require(_0x0bbd('0x5'));var controller=require(_0x0bbd('0x6'));router[_0x0bbd('0x7')]('/',auth[_0x0bbd('0x8')](),controller[_0x0bbd('0x9')]);router[_0x0bbd('0x7')]('/describe',auth[_0x0bbd('0x8')](),controller[_0x0bbd('0xa')]);router[_0x0bbd('0x7')](_0x0bbd('0xb'),auth[_0x0bbd('0x8')](),controller[_0x0bbd('0xc')]);router[_0x0bbd('0x7')](_0x0bbd('0xd'),auth['isAuthenticated'](),controller['getMessages']);router[_0x0bbd('0x7')](_0x0bbd('0xe'),auth[_0x0bbd('0x8')](),controller[_0x0bbd('0xf')]);router[_0x0bbd('0x10')]('/',auth[_0x0bbd('0x8')](),controller['create']);router[_0x0bbd('0x10')](_0x0bbd('0xd'),auth['isAuthenticated'](),controller[_0x0bbd('0x11')]);router[_0x0bbd('0x10')]('/:id/tags',auth[_0x0bbd('0x8')](),interaction['tracked'](_0x0bbd('0x12'),_0x0bbd('0x13')),controller['addTags']);router[_0x0bbd('0x14')]('/:id',auth[_0x0bbd('0x8')](),interaction[_0x0bbd('0x15')](_0x0bbd('0x12'),'openchannelinteraction:update'),controller[_0x0bbd('0x16')]);router['delete'](_0x0bbd('0xb'),auth[_0x0bbd('0x8')](),interaction['tracked'](_0x0bbd('0x12'),_0x0bbd('0x17')),controller[_0x0bbd('0x18')]);router[_0x0bbd('0x19')](_0x0bbd('0x1a'),auth['isAuthenticated'](),controller[_0x0bbd('0x1b')]);module[_0x0bbd('0x1c')]=router;