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