165c7e7f2c0c53288cf85eadb5b32480cb8e4ce3
[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 _0x48f3=['getMembers','/:id/teams','getTeams','/:id/users','create','addTeams','addAgents','put','update','delete','destroy','removeTeams','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./mailQueue.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/members'];(function(_0x275e58,_0x5ed75e){var _0x36b2a2=function(_0x3a86fa){while(--_0x3a86fa){_0x275e58['push'](_0x275e58['shift']());}};_0x36b2a2(++_0x5ed75e);}(_0x48f3,0x186));var _0x348f=function(_0x189364,_0x5c3657){_0x189364=_0x189364-0x0;var _0x25fb94=_0x48f3[_0x189364];return _0x25fb94;};'use strict';var multer=require('multer');var util=require(_0x348f('0x0'));var path=require(_0x348f('0x1'));var timeout=require(_0x348f('0x2'));var express=require(_0x348f('0x3'));var router=express[_0x348f('0x4')]();var auth=require(_0x348f('0x5'));var interaction=require(_0x348f('0x6'));var config=require('../../config/environment');var controller=require(_0x348f('0x7'));router['get']('/',auth[_0x348f('0x8')](),controller[_0x348f('0x9')]);router[_0x348f('0xa')](_0x348f('0xb'),auth['isAuthenticated'](),controller[_0x348f('0xc')]);router[_0x348f('0xa')](_0x348f('0xd'),auth[_0x348f('0x8')](),controller[_0x348f('0xe')]);router[_0x348f('0xa')](_0x348f('0xf'),auth[_0x348f('0x8')](),controller[_0x348f('0x10')]);router[_0x348f('0xa')](_0x348f('0x11'),auth[_0x348f('0x8')](),controller[_0x348f('0x12')]);router[_0x348f('0xa')](_0x348f('0x13'),auth[_0x348f('0x8')](),controller['getAgents']);router['post']('/',auth[_0x348f('0x8')](),controller[_0x348f('0x14')]);router['post']('/:id/teams',auth[_0x348f('0x8')](),controller[_0x348f('0x15')]);router['post'](_0x348f('0x13'),auth[_0x348f('0x8')](),controller[_0x348f('0x16')]);router[_0x348f('0x17')](_0x348f('0xd'),auth[_0x348f('0x8')](),controller[_0x348f('0x18')]);router[_0x348f('0x19')]('/:id',auth[_0x348f('0x8')](),controller[_0x348f('0x1a')]);router['delete'](_0x348f('0x11'),auth[_0x348f('0x8')](),controller[_0x348f('0x1b')]);router[_0x348f('0x19')](_0x348f('0x13'),auth['isAuthenticated'](),controller['removeAgents']);module[_0x348f('0x1c')]=router;