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