Built motion from commit (unavailable).|2.5.4
[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 _0x3c6a=['get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','create','addMessage','/:id/tags','tracked','openchannel','update','openchannelinteraction:destroy','destroy','delete','removeTags','multer','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x2ca3b4,_0x3583de){var _0x14d3c0=function(_0x17462d){while(--_0x17462d){_0x2ca3b4['push'](_0x2ca3b4['shift']());}};_0x14d3c0(++_0x3583de);}(_0x3c6a,0x155));var _0xa3c6=function(_0x3a13cf,_0x478c62){_0x3a13cf=_0x3a13cf-0x0;var _0x4817c=_0x3c6a[_0x3a13cf];return _0x4817c;};'use strict';var multer=require(_0xa3c6('0x0'));var util=require(_0xa3c6('0x1'));var path=require(_0xa3c6('0x2'));var timeout=require(_0xa3c6('0x3'));var express=require(_0xa3c6('0x4'));var router=express[_0xa3c6('0x5')]();var auth=require(_0xa3c6('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./openchannelInteraction.controller');router[_0xa3c6('0x7')]('/',auth[_0xa3c6('0x8')](),controller[_0xa3c6('0x9')]);router['get'](_0xa3c6('0xa'),auth[_0xa3c6('0x8')](),controller[_0xa3c6('0xb')]);router[_0xa3c6('0x7')](_0xa3c6('0xc'),auth[_0xa3c6('0x8')](),controller[_0xa3c6('0xd')]);router[_0xa3c6('0x7')](_0xa3c6('0xe'),auth[_0xa3c6('0x8')](),controller[_0xa3c6('0xf')]);router[_0xa3c6('0x7')](_0xa3c6('0x10'),auth[_0xa3c6('0x8')](),controller[_0xa3c6('0x11')]);router[_0xa3c6('0x12')]('/',auth[_0xa3c6('0x8')](),controller[_0xa3c6('0x13')]);router[_0xa3c6('0x12')]('/:id/messages',auth['isAuthenticated'](),controller[_0xa3c6('0x14')]);router[_0xa3c6('0x12')](_0xa3c6('0x15'),auth[_0xa3c6('0x8')](),interaction[_0xa3c6('0x16')](_0xa3c6('0x17'),'openchannelinteraction:addtags'),controller['addTags']);router['put'](_0xa3c6('0xc'),auth[_0xa3c6('0x8')](),interaction[_0xa3c6('0x16')]('openchannel','openchannelinteraction:update'),controller[_0xa3c6('0x18')]);router['delete'](_0xa3c6('0xc'),auth[_0xa3c6('0x8')](),interaction[_0xa3c6('0x16')](_0xa3c6('0x17'),_0xa3c6('0x19')),controller[_0xa3c6('0x1a')]);router[_0xa3c6('0x1b')](_0xa3c6('0x15'),auth['isAuthenticated'](),controller[_0xa3c6('0x1c')]);module['exports']=router;