Built motion from commit e0fa946e.|2.6.5
[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 _0xdd8f=['/:id/teams','getTeams','/:id/users','getAgents','post','create','addTeams','put','update','delete','destroy','removeTeams','removeAgents','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./mailQueue.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers'];(function(_0x7cdaf1,_0x40e620){var _0xf58e9a=function(_0xc05694){while(--_0xc05694){_0x7cdaf1['push'](_0x7cdaf1['shift']());}};_0xf58e9a(++_0x40e620);}(_0xdd8f,0x1b1));var _0xfdd8=function(_0x106bb6,_0x56e51a){_0x106bb6=_0x106bb6-0x0;var _0x2d1dd9=_0xdd8f[_0x106bb6];return _0x2d1dd9;};'use strict';var multer=require(_0xfdd8('0x0'));var util=require(_0xfdd8('0x1'));var path=require('path');var timeout=require(_0xfdd8('0x2'));var express=require('express');var router=express[_0xfdd8('0x3')]();var fs_extra=require(_0xfdd8('0x4'));var auth=require(_0xfdd8('0x5'));var interaction=require(_0xfdd8('0x6'));var config=require('../../config/environment');var controller=require(_0xfdd8('0x7'));router[_0xfdd8('0x8')]('/',auth[_0xfdd8('0x9')](),controller[_0xfdd8('0xa')]);router[_0xfdd8('0x8')](_0xfdd8('0xb'),auth[_0xfdd8('0x9')](),controller[_0xfdd8('0xc')]);router[_0xfdd8('0x8')](_0xfdd8('0xd'),auth[_0xfdd8('0x9')](),controller[_0xfdd8('0xe')]);router[_0xfdd8('0x8')](_0xfdd8('0xf'),auth[_0xfdd8('0x9')](),controller[_0xfdd8('0x10')]);router[_0xfdd8('0x8')](_0xfdd8('0x11'),auth[_0xfdd8('0x9')](),controller[_0xfdd8('0x12')]);router[_0xfdd8('0x8')](_0xfdd8('0x13'),auth[_0xfdd8('0x9')](),controller[_0xfdd8('0x14')]);router[_0xfdd8('0x15')]('/',auth['isAuthenticated'](),controller[_0xfdd8('0x16')]);router[_0xfdd8('0x15')](_0xfdd8('0x11'),auth[_0xfdd8('0x9')](),controller[_0xfdd8('0x17')]);router[_0xfdd8('0x15')](_0xfdd8('0x13'),auth[_0xfdd8('0x9')](),controller['addAgents']);router[_0xfdd8('0x18')]('/:id',auth[_0xfdd8('0x9')](),controller[_0xfdd8('0x19')]);router[_0xfdd8('0x1a')]('/:id',auth[_0xfdd8('0x9')](),controller[_0xfdd8('0x1b')]);router['delete'](_0xfdd8('0x11'),auth[_0xfdd8('0x9')](),controller[_0xfdd8('0x1c')]);router[_0xfdd8('0x1a')](_0xfdd8('0x13'),auth[_0xfdd8('0x9')](),controller[_0xfdd8('0x1d')]);module['exports']=router;