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