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 _0x4b27=['connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./team.controller','get','isAuthenticated','index','/:id','show','/:id/queues','create','post','addQueues','/:id/users','addAgents','update','delete','removeQueues','exports','multer','util','path'];(function(_0x4b8fc7,_0x5022fc){var _0x249f4a=function(_0x1b25d4){while(--_0x1b25d4){_0x4b8fc7['push'](_0x4b8fc7['shift']());}};_0x249f4a(++_0x5022fc);}(_0x4b27,0x16d));var _0x74b2=function(_0x429c60,_0x237809){_0x429c60=_0x429c60-0x0;var _0x29ee2d=_0x4b27[_0x429c60];return _0x29ee2d;};'use strict';var multer=require(_0x74b2('0x0'));var util=require(_0x74b2('0x1'));var path=require(_0x74b2('0x2'));var timeout=require(_0x74b2('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x74b2('0x4'));var interaction=require(_0x74b2('0x5'));var config=require(_0x74b2('0x6'));var controller=require(_0x74b2('0x7'));router[_0x74b2('0x8')]('/',auth[_0x74b2('0x9')](),controller[_0x74b2('0xa')]);router['get'](_0x74b2('0xb'),auth[_0x74b2('0x9')](),controller[_0x74b2('0xc')]);router['get'](_0x74b2('0xd'),auth['isAuthenticated'](),controller['getQueues']);router[_0x74b2('0x8')]('/:id/users',auth[_0x74b2('0x9')](),controller['getAgents']);router['post']('/',auth[_0x74b2('0x9')](),controller[_0x74b2('0xe')]);router[_0x74b2('0xf')]('/:id/queues',auth[_0x74b2('0x9')](),controller[_0x74b2('0x10')]);router[_0x74b2('0xf')](_0x74b2('0x11'),auth[_0x74b2('0x9')](),controller[_0x74b2('0x12')]);router['put'](_0x74b2('0xb'),auth[_0x74b2('0x9')](),controller[_0x74b2('0x13')]);router[_0x74b2('0x14')](_0x74b2('0xb'),auth[_0x74b2('0x9')](),controller['destroy']);router[_0x74b2('0x14')]('/:id/queues',auth['isAuthenticated'](),controller[_0x74b2('0x15')]);router[_0x74b2('0x14')](_0x74b2('0x11'),auth[_0x74b2('0x9')](),controller['removeAgents']);module[_0x74b2('0x16')]=router;