Built motion from commit (unavailable).|2.5.22
[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 _0xa104=['destroy','removeTeams','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','create','addAgents','put','delete'];(function(_0x43fbc4,_0x18fcc5){var _0x4ab859=function(_0x386f66){while(--_0x386f66){_0x43fbc4['push'](_0x43fbc4['shift']());}};_0x4ab859(++_0x18fcc5);}(_0xa104,0x16f));var _0x4a10=function(_0x3e4e98,_0x455ea1){_0x3e4e98=_0x3e4e98-0x0;var _0x2759ed=_0xa104[_0x3e4e98];return _0x2759ed;};'use strict';var multer=require('multer');var util=require(_0x4a10('0x0'));var path=require(_0x4a10('0x1'));var timeout=require(_0x4a10('0x2'));var express=require(_0x4a10('0x3'));var router=express[_0x4a10('0x4')]();var auth=require(_0x4a10('0x5'));var interaction=require(_0x4a10('0x6'));var config=require(_0x4a10('0x7'));var controller=require('./mailQueue.controller');router[_0x4a10('0x8')]('/',auth[_0x4a10('0x9')](),controller[_0x4a10('0xa')]);router[_0x4a10('0x8')](_0x4a10('0xb'),auth[_0x4a10('0x9')](),controller[_0x4a10('0xc')]);router[_0x4a10('0x8')](_0x4a10('0xd'),auth[_0x4a10('0x9')](),controller[_0x4a10('0xe')]);router[_0x4a10('0x8')]('/:id/members',auth[_0x4a10('0x9')](),controller[_0x4a10('0xf')]);router['get'](_0x4a10('0x10'),auth[_0x4a10('0x9')](),controller[_0x4a10('0x11')]);router[_0x4a10('0x8')](_0x4a10('0x12'),auth['isAuthenticated'](),controller[_0x4a10('0x13')]);router[_0x4a10('0x14')]('/',auth[_0x4a10('0x9')](),controller[_0x4a10('0x15')]);router[_0x4a10('0x14')](_0x4a10('0x10'),auth[_0x4a10('0x9')](),controller['addTeams']);router[_0x4a10('0x14')]('/:id/users',auth[_0x4a10('0x9')](),controller[_0x4a10('0x16')]);router[_0x4a10('0x17')](_0x4a10('0xd'),auth[_0x4a10('0x9')](),controller['update']);router[_0x4a10('0x18')](_0x4a10('0xd'),auth[_0x4a10('0x9')](),controller[_0x4a10('0x19')]);router['delete'](_0x4a10('0x10'),auth['isAuthenticated'](),controller[_0x4a10('0x1a')]);router[_0x4a10('0x18')](_0x4a10('0x12'),auth[_0x4a10('0x9')](),controller['removeAgents']);module[_0x4a10('0x1b')]=router;