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