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