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 _0x718e=['../../config/environment','get','isAuthenticated','index','/describe','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','getAgents','create','post','addTeams','addAgents','put','/:id','update','delete','removeTeams','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x350a01,_0x5ed763){var _0xc17c6b=function(_0x31aaec){while(--_0x31aaec){_0x350a01['push'](_0x350a01['shift']());}};_0xc17c6b(++_0x5ed763);}(_0x718e,0x1f2));var _0xe718=function(_0x2c7780,_0x100f4a){_0x2c7780=_0x2c7780-0x0;var _0x580bc8=_0x718e[_0x2c7780];return _0x580bc8;};'use strict';var multer=require(_0xe718('0x0'));var util=require(_0xe718('0x1'));var path=require(_0xe718('0x2'));var timeout=require(_0xe718('0x3'));var express=require(_0xe718('0x4'));var router=express[_0xe718('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe718('0x6'));var controller=require('./chatQueue.controller');router[_0xe718('0x7')]('/',auth[_0xe718('0x8')](),controller[_0xe718('0x9')]);router[_0xe718('0x7')](_0xe718('0xa'),auth[_0xe718('0x8')](),controller['describe']);router[_0xe718('0x7')]('/:id',auth[_0xe718('0x8')](),controller[_0xe718('0xb')]);router[_0xe718('0x7')](_0xe718('0xc'),auth[_0xe718('0x8')](),controller[_0xe718('0xd')]);router['get'](_0xe718('0xe'),auth[_0xe718('0x8')](),controller[_0xe718('0xf')]);router[_0xe718('0x7')](_0xe718('0x10'),auth['isAuthenticated'](),controller[_0xe718('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0xe718('0x12')]);router[_0xe718('0x13')](_0xe718('0xe'),auth[_0xe718('0x8')](),controller[_0xe718('0x14')]);router[_0xe718('0x13')]('/:id/users',auth[_0xe718('0x8')](),controller[_0xe718('0x15')]);router[_0xe718('0x16')](_0xe718('0x17'),auth[_0xe718('0x8')](),controller[_0xe718('0x18')]);router[_0xe718('0x19')]('/:id',auth[_0xe718('0x8')](),controller['destroy']);router['delete']('/:id/teams',auth['isAuthenticated'](),controller[_0xe718('0x1a')]);router['delete'](_0xe718('0x10'),auth['isAuthenticated'](),controller['removeAgents']);module[_0xe718('0x1b')]=router;