37fd7a1b49daee39b1a71f7d2daf47e657708f2e
[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 _0x6d06=['/describe','describe','/:id','isAuthenticated','show','/:id/members','/:id/teams','/:id/users','getAgents','post','create','addTeams','addAgents','put','destroy','delete','removeAgents','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailQueue.controller','get'];(function(_0x4d9842,_0x249814){var _0x484c75=function(_0xd51c92){while(--_0xd51c92){_0x4d9842['push'](_0x4d9842['shift']());}};_0x484c75(++_0x249814);}(_0x6d06,0xea));var _0x66d0=function(_0x26b80e,_0x5c9333){_0x26b80e=_0x26b80e-0x0;var _0x84a8a8=_0x6d06[_0x26b80e];return _0x84a8a8;};'use strict';var multer=require(_0x66d0('0x0'));var util=require('util');var path=require(_0x66d0('0x1'));var timeout=require(_0x66d0('0x2'));var express=require(_0x66d0('0x3'));var router=express['Router']();var auth=require(_0x66d0('0x4'));var interaction=require(_0x66d0('0x5'));var config=require(_0x66d0('0x6'));var controller=require(_0x66d0('0x7'));router[_0x66d0('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x66d0('0x8')](_0x66d0('0x9'),auth['isAuthenticated'](),controller[_0x66d0('0xa')]);router[_0x66d0('0x8')](_0x66d0('0xb'),auth[_0x66d0('0xc')](),controller[_0x66d0('0xd')]);router[_0x66d0('0x8')](_0x66d0('0xe'),auth['isAuthenticated'](),controller['getMembers']);router[_0x66d0('0x8')](_0x66d0('0xf'),auth['isAuthenticated'](),controller['getTeams']);router[_0x66d0('0x8')](_0x66d0('0x10'),auth['isAuthenticated'](),controller[_0x66d0('0x11')]);router[_0x66d0('0x12')]('/',auth['isAuthenticated'](),controller[_0x66d0('0x13')]);router[_0x66d0('0x12')](_0x66d0('0xf'),auth['isAuthenticated'](),controller[_0x66d0('0x14')]);router['post'](_0x66d0('0x10'),auth[_0x66d0('0xc')](),controller[_0x66d0('0x15')]);router[_0x66d0('0x16')]('/:id',auth[_0x66d0('0xc')](),controller['update']);router['delete'](_0x66d0('0xb'),auth[_0x66d0('0xc')](),controller[_0x66d0('0x17')]);router[_0x66d0('0x18')]('/:id/teams',auth[_0x66d0('0xc')](),controller['removeTeams']);router[_0x66d0('0x18')]('/:id/users',auth[_0x66d0('0xc')](),controller[_0x66d0('0x19')]);module[_0x66d0('0x1a')]=router;