1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x318f=['removeAgents','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailQueue.controller','isAuthenticated','get','describe','/:id','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','addTeams','addAgents','put','update','delete','destroy','removeTeams'];(function(_0x3a15bc,_0x1874f8){var _0x50d633=function(_0x4339d8){while(--_0x4339d8){_0x3a15bc['push'](_0x3a15bc['shift']());}};_0x50d633(++_0x1874f8);}(_0x318f,0x18a));var _0xf318=function(_0x41c205,_0x3d43b7){_0x41c205=_0x41c205-0x0;var _0x35f4e4=_0x318f[_0x41c205];return _0x35f4e4;};'use strict';var multer=require(_0xf318('0x0'));var util=require(_0xf318('0x1'));var path=require(_0xf318('0x2'));var timeout=require('connect-timeout');var express=require(_0xf318('0x3'));var router=express['Router']();var fs_extra=require(_0xf318('0x4'));var auth=require(_0xf318('0x5'));var interaction=require(_0xf318('0x6'));var config=require(_0xf318('0x7'));var controller=require(_0xf318('0x8'));router['get']('/',auth[_0xf318('0x9')](),controller['index']);router[_0xf318('0xa')]('/describe',auth[_0xf318('0x9')](),controller[_0xf318('0xb')]);router[_0xf318('0xa')](_0xf318('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xf318('0xa')]('/:id/members',auth['isAuthenticated'](),controller[_0xf318('0xd')]);router[_0xf318('0xa')](_0xf318('0xe'),auth[_0xf318('0x9')](),controller[_0xf318('0xf')]);router['get'](_0xf318('0x10'),auth[_0xf318('0x9')](),controller[_0xf318('0x11')]);router[_0xf318('0x12')]('/',auth[_0xf318('0x9')](),controller['create']);router[_0xf318('0x12')]('/:id/teams',auth[_0xf318('0x9')](),controller[_0xf318('0x13')]);router['post'](_0xf318('0x10'),auth[_0xf318('0x9')](),controller[_0xf318('0x14')]);router[_0xf318('0x15')](_0xf318('0xc'),auth[_0xf318('0x9')](),controller[_0xf318('0x16')]);router[_0xf318('0x17')]('/:id',auth[_0xf318('0x9')](),controller[_0xf318('0x18')]);router[_0xf318('0x17')](_0xf318('0xe'),auth[_0xf318('0x9')](),controller[_0xf318('0x19')]);router[_0xf318('0x17')](_0xf318('0x10'),auth[_0xf318('0x9')](),controller[_0xf318('0x1a')]);module[_0xf318('0x1b')]=router;