7b77b0fe21e05b59264f7653b9e01f3d4cdc122a
[motion2.git] / server / api / mailQueue / 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 _0x8bf4=['/:id','update','delete','destroy','removeTeams','removeAgents','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./mailQueue.controller','get','isAuthenticated','index','/describe','describe','/:id/members','getMembers','/:id/teams','getTeams','post','create','addTeams','/:id/users','addAgents','put'];(function(_0x4fc9e6,_0xc51915){var _0x551d28=function(_0x1a603b){while(--_0x1a603b){_0x4fc9e6['push'](_0x4fc9e6['shift']());}};_0x551d28(++_0xc51915);}(_0x8bf4,0xc1));var _0x48bf=function(_0x30e804,_0x8d453b){_0x30e804=_0x30e804-0x0;var _0x529374=_0x8bf4[_0x30e804];return _0x529374;};'use strict';var multer=require(_0x48bf('0x0'));var util=require('util');var path=require(_0x48bf('0x1'));var timeout=require(_0x48bf('0x2'));var express=require(_0x48bf('0x3'));var router=express[_0x48bf('0x4')]();var fs_extra=require(_0x48bf('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x48bf('0x6'));var config=require(_0x48bf('0x7'));var controller=require(_0x48bf('0x8'));router[_0x48bf('0x9')]('/',auth[_0x48bf('0xa')](),controller[_0x48bf('0xb')]);router['get'](_0x48bf('0xc'),auth[_0x48bf('0xa')](),controller[_0x48bf('0xd')]);router[_0x48bf('0x9')]('/:id',auth[_0x48bf('0xa')](),controller['show']);router[_0x48bf('0x9')](_0x48bf('0xe'),auth[_0x48bf('0xa')](),controller[_0x48bf('0xf')]);router['get'](_0x48bf('0x10'),auth['isAuthenticated'](),controller[_0x48bf('0x11')]);router[_0x48bf('0x9')]('/:id/users',auth['isAuthenticated'](),controller['getAgents']);router[_0x48bf('0x12')]('/',auth[_0x48bf('0xa')](),controller[_0x48bf('0x13')]);router[_0x48bf('0x12')](_0x48bf('0x10'),auth[_0x48bf('0xa')](),controller[_0x48bf('0x14')]);router[_0x48bf('0x12')](_0x48bf('0x15'),auth[_0x48bf('0xa')](),controller[_0x48bf('0x16')]);router[_0x48bf('0x17')](_0x48bf('0x18'),auth[_0x48bf('0xa')](),controller[_0x48bf('0x19')]);router[_0x48bf('0x1a')]('/:id',auth[_0x48bf('0xa')](),controller[_0x48bf('0x1b')]);router[_0x48bf('0x1a')]('/:id/teams',auth['isAuthenticated'](),controller[_0x48bf('0x1c')]);router[_0x48bf('0x1a')](_0x48bf('0x15'),auth[_0x48bf('0xa')](),controller[_0x48bf('0x1d')]);module[_0x48bf('0x1e')]=router;