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