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