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 _0x9680=['delete','destroy','removeQueues','removeAgents','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./team.controller','isAuthenticated','show','get','/:id/queues','getQueues','/:id/users','post','create','addQueues','addAgents','put','/:id','update'];(function(_0x220689,_0x58ca87){var _0xc3dabf=function(_0x130052){while(--_0x130052){_0x220689['push'](_0x220689['shift']());}};_0xc3dabf(++_0x58ca87);}(_0x9680,0x12e));var _0x0968=function(_0x2d9922,_0x59fd51){_0x2d9922=_0x2d9922-0x0;var _0xaecfe=_0x9680[_0x2d9922];return _0xaecfe;};'use strict';var multer=require(_0x0968('0x0'));var util=require(_0x0968('0x1'));var path=require(_0x0968('0x2'));var timeout=require('connect-timeout');var express=require(_0x0968('0x3'));var router=express[_0x0968('0x4')]();var auth=require(_0x0968('0x5'));var interaction=require(_0x0968('0x6'));var config=require(_0x0968('0x7'));var controller=require(_0x0968('0x8'));router['get']('/',auth[_0x0968('0x9')](),controller['index']);router['get']('/:id',auth[_0x0968('0x9')](),controller[_0x0968('0xa')]);router[_0x0968('0xb')](_0x0968('0xc'),auth[_0x0968('0x9')](),controller[_0x0968('0xd')]);router[_0x0968('0xb')](_0x0968('0xe'),auth['isAuthenticated'](),controller['getAgents']);router[_0x0968('0xf')]('/',auth[_0x0968('0x9')](),controller[_0x0968('0x10')]);router[_0x0968('0xf')](_0x0968('0xc'),auth['isAuthenticated'](),controller[_0x0968('0x11')]);router[_0x0968('0xf')](_0x0968('0xe'),auth[_0x0968('0x9')](),controller[_0x0968('0x12')]);router[_0x0968('0x13')](_0x0968('0x14'),auth[_0x0968('0x9')](),controller[_0x0968('0x15')]);router[_0x0968('0x16')](_0x0968('0x14'),auth[_0x0968('0x9')](),controller[_0x0968('0x17')]);router[_0x0968('0x16')](_0x0968('0xc'),auth[_0x0968('0x9')](),controller[_0x0968('0x18')]);router['delete'](_0x0968('0xe'),auth[_0x0968('0x9')](),controller[_0x0968('0x19')]);module[_0x0968('0x1a')]=router;