3a45b27aa79a529d0216c25de87438ed906d8032
[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 _0xf137=['fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/describe','describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','getAgents','post','addTeams','put','update','delete','removeTeams','/:id/users','removeAgents','exports','multer','util','connect-timeout','express'];(function(_0x5cd65a,_0x301f8f){var _0x1606f8=function(_0x573494){while(--_0x573494){_0x5cd65a['push'](_0x5cd65a['shift']());}};_0x1606f8(++_0x301f8f);}(_0xf137,0x1c7));var _0x7f13=function(_0x523212,_0x437cc3){_0x523212=_0x523212-0x0;var _0x38c3b2=_0xf137[_0x523212];return _0x38c3b2;};'use strict';var multer=require(_0x7f13('0x0'));var util=require(_0x7f13('0x1'));var path=require('path');var timeout=require(_0x7f13('0x2'));var express=require(_0x7f13('0x3'));var router=express['Router']();var fs_extra=require(_0x7f13('0x4'));var auth=require(_0x7f13('0x5'));var interaction=require(_0x7f13('0x6'));var config=require('../../config/environment');var controller=require('./mailQueue.controller');router[_0x7f13('0x7')]('/',auth[_0x7f13('0x8')](),controller['index']);router['get'](_0x7f13('0x9'),auth[_0x7f13('0x8')](),controller[_0x7f13('0xa')]);router[_0x7f13('0x7')](_0x7f13('0xb'),auth[_0x7f13('0x8')](),controller[_0x7f13('0xc')]);router[_0x7f13('0x7')](_0x7f13('0xd'),auth['isAuthenticated'](),controller[_0x7f13('0xe')]);router[_0x7f13('0x7')](_0x7f13('0xf'),auth[_0x7f13('0x8')](),controller[_0x7f13('0x10')]);router['get']('/:id/users',auth[_0x7f13('0x8')](),controller[_0x7f13('0x11')]);router[_0x7f13('0x12')]('/',auth[_0x7f13('0x8')](),controller['create']);router[_0x7f13('0x12')]('/:id/teams',auth[_0x7f13('0x8')](),controller[_0x7f13('0x13')]);router[_0x7f13('0x12')]('/:id/users',auth[_0x7f13('0x8')](),controller['addAgents']);router[_0x7f13('0x14')](_0x7f13('0xb'),auth[_0x7f13('0x8')](),controller[_0x7f13('0x15')]);router[_0x7f13('0x16')](_0x7f13('0xb'),auth[_0x7f13('0x8')](),controller['destroy']);router[_0x7f13('0x16')](_0x7f13('0xf'),auth[_0x7f13('0x8')](),controller[_0x7f13('0x17')]);router[_0x7f13('0x16')](_0x7f13('0x18'),auth[_0x7f13('0x8')](),controller[_0x7f13('0x19')]);module[_0x7f13('0x1a')]=router;