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