fb3666b0a481f5e311f413ac6d39d5ff1d752a61
[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 _0xd077=['multer','Router','fs-extra','../../components/interaction/service','./openchannelInteraction.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','post','addMessage','tracked','openchannel','openchannelinteraction:addtags','addTags','put','openchannelinteraction:update','update','delete','openchannelinteraction:destroy','destroy','/:id/tags','removeTags','exports'];(function(_0x355e24,_0x198b3e){var _0x5c2979=function(_0x290369){while(--_0x290369){_0x355e24['push'](_0x355e24['shift']());}};_0x5c2979(++_0x198b3e);}(_0xd077,0xe8));var _0x7d07=function(_0x5e9e76,_0x26fd08){_0x5e9e76=_0x5e9e76-0x0;var _0x4ea855=_0xd077[_0x5e9e76];return _0x4ea855;};'use strict';var multer=require(_0x7d07('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x7d07('0x1')]();var fs_extra=require(_0x7d07('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0x7d07('0x3'));var config=require('../../config/environment');var controller=require(_0x7d07('0x4'));router[_0x7d07('0x5')]('/',auth[_0x7d07('0x6')](),controller['index']);router[_0x7d07('0x5')](_0x7d07('0x7'),auth['isAuthenticated'](),controller[_0x7d07('0x8')]);router['get'](_0x7d07('0x9'),auth[_0x7d07('0x6')](),controller[_0x7d07('0xa')]);router[_0x7d07('0x5')](_0x7d07('0xb'),auth[_0x7d07('0x6')](),controller[_0x7d07('0xc')]);router[_0x7d07('0x5')](_0x7d07('0xd'),auth[_0x7d07('0x6')](),controller['download']);router[_0x7d07('0xe')]('/',auth[_0x7d07('0x6')](),controller['create']);router[_0x7d07('0xe')](_0x7d07('0xb'),auth[_0x7d07('0x6')](),controller[_0x7d07('0xf')]);router[_0x7d07('0xe')]('/:id/tags',auth[_0x7d07('0x6')](),interaction[_0x7d07('0x10')](_0x7d07('0x11'),_0x7d07('0x12')),controller[_0x7d07('0x13')]);router[_0x7d07('0x14')]('/:id',auth[_0x7d07('0x6')](),interaction[_0x7d07('0x10')](_0x7d07('0x11'),_0x7d07('0x15')),controller[_0x7d07('0x16')]);router[_0x7d07('0x17')](_0x7d07('0x9'),auth['isAuthenticated'](),interaction[_0x7d07('0x10')]('openchannel',_0x7d07('0x18')),controller[_0x7d07('0x19')]);router[_0x7d07('0x17')](_0x7d07('0x1a'),auth[_0x7d07('0x6')](),controller[_0x7d07('0x1b')]);module[_0x7d07('0x1c')]=router;