ecc5ccb6de47489648de0e63207f9f8eb4c5176f
[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 _0x0b1e=['destroy','removeTeams','removeAgents','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailQueue.controller','get','isAuthenticated','index','/:id','show','/:id/members','getMembers','/:id/users','getAgents','post','create','/:id/teams','addTeams','addAgents','update','delete'];(function(_0x2892da,_0x191a40){var _0x28cff2=function(_0x57023d){while(--_0x57023d){_0x2892da['push'](_0x2892da['shift']());}};_0x28cff2(++_0x191a40);}(_0x0b1e,0x1a8));var _0xe0b1=function(_0x9edfd5,_0x286486){_0x9edfd5=_0x9edfd5-0x0;var _0x330738=_0x0b1e[_0x9edfd5];return _0x330738;};'use strict';var multer=require(_0xe0b1('0x0'));var util=require(_0xe0b1('0x1'));var path=require(_0xe0b1('0x2'));var timeout=require('connect-timeout');var express=require(_0xe0b1('0x3'));var router=express[_0xe0b1('0x4')]();var fs_extra=require(_0xe0b1('0x5'));var auth=require(_0xe0b1('0x6'));var interaction=require(_0xe0b1('0x7'));var config=require(_0xe0b1('0x8'));var controller=require(_0xe0b1('0x9'));router[_0xe0b1('0xa')]('/',auth[_0xe0b1('0xb')](),controller[_0xe0b1('0xc')]);router['get']('/describe',auth[_0xe0b1('0xb')](),controller['describe']);router[_0xe0b1('0xa')](_0xe0b1('0xd'),auth[_0xe0b1('0xb')](),controller[_0xe0b1('0xe')]);router[_0xe0b1('0xa')](_0xe0b1('0xf'),auth['isAuthenticated'](),controller[_0xe0b1('0x10')]);router[_0xe0b1('0xa')]('/:id/teams',auth[_0xe0b1('0xb')](),controller['getTeams']);router[_0xe0b1('0xa')](_0xe0b1('0x11'),auth[_0xe0b1('0xb')](),controller[_0xe0b1('0x12')]);router[_0xe0b1('0x13')]('/',auth['isAuthenticated'](),controller[_0xe0b1('0x14')]);router['post'](_0xe0b1('0x15'),auth['isAuthenticated'](),controller[_0xe0b1('0x16')]);router[_0xe0b1('0x13')](_0xe0b1('0x11'),auth[_0xe0b1('0xb')](),controller[_0xe0b1('0x17')]);router['put'](_0xe0b1('0xd'),auth[_0xe0b1('0xb')](),controller[_0xe0b1('0x18')]);router[_0xe0b1('0x19')](_0xe0b1('0xd'),auth[_0xe0b1('0xb')](),controller[_0xe0b1('0x1a')]);router[_0xe0b1('0x19')](_0xe0b1('0x15'),auth[_0xe0b1('0xb')](),controller[_0xe0b1('0x1b')]);router[_0xe0b1('0x19')]('/:id/users',auth[_0xe0b1('0xb')](),controller[_0xe0b1('0x1c')]);module[_0xe0b1('0x1d')]=router;