Built motion from commit 936e8062.|2.5.33
[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 _0xacd7=['update','delete','destroy','/:id/users','removeAgents','exports','multer','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailQueue.controller','get','isAuthenticated','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','getAgents','post','addTeams','addAgents'];(function(_0x349883,_0x53efaa){var _0x47871e=function(_0x6375a3){while(--_0x6375a3){_0x349883['push'](_0x349883['shift']());}};_0x47871e(++_0x53efaa);}(_0xacd7,0x18c));var _0x7acd=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xacd7[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x7acd('0x0'));var util=require('util');var path=require(_0x7acd('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x7acd('0x2')]();var fs_extra=require(_0x7acd('0x3'));var auth=require(_0x7acd('0x4'));var interaction=require(_0x7acd('0x5'));var config=require(_0x7acd('0x6'));var controller=require(_0x7acd('0x7'));router[_0x7acd('0x8')]('/',auth[_0x7acd('0x9')](),controller['index']);router[_0x7acd('0x8')]('/describe',auth[_0x7acd('0x9')](),controller['describe']);router['get'](_0x7acd('0xa'),auth[_0x7acd('0x9')](),controller[_0x7acd('0xb')]);router[_0x7acd('0x8')](_0x7acd('0xc'),auth[_0x7acd('0x9')](),controller[_0x7acd('0xd')]);router[_0x7acd('0x8')](_0x7acd('0xe'),auth[_0x7acd('0x9')](),controller[_0x7acd('0xf')]);router[_0x7acd('0x8')]('/:id/users',auth[_0x7acd('0x9')](),controller[_0x7acd('0x10')]);router[_0x7acd('0x11')]('/',auth['isAuthenticated'](),controller['create']);router[_0x7acd('0x11')](_0x7acd('0xe'),auth[_0x7acd('0x9')](),controller[_0x7acd('0x12')]);router[_0x7acd('0x11')]('/:id/users',auth[_0x7acd('0x9')](),controller[_0x7acd('0x13')]);router['put'](_0x7acd('0xa'),auth[_0x7acd('0x9')](),controller[_0x7acd('0x14')]);router[_0x7acd('0x15')]('/:id',auth['isAuthenticated'](),controller[_0x7acd('0x16')]);router[_0x7acd('0x15')](_0x7acd('0xe'),auth[_0x7acd('0x9')](),controller['removeTeams']);router[_0x7acd('0x15')](_0x7acd('0x17'),auth[_0x7acd('0x9')](),controller[_0x7acd('0x18')]);module[_0x7acd('0x19')]=router;