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