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 _0xceae=['describe','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','create','addTeams','post','put','/:id','delete','removeTeams','removeAgents','multer','util','Router','../../config/environment','./openchannelQueue.controller','get','isAuthenticated','index','/describe'];(function(_0xdeac17,_0x19ad66){var _0x33aabd=function(_0x558a9e){while(--_0x558a9e){_0xdeac17['push'](_0xdeac17['shift']());}};_0x33aabd(++_0x19ad66);}(_0xceae,0x122));var _0xecea=function(_0x1c6856,_0x8786ba){_0x1c6856=_0x1c6856-0x0;var _0x310ca5=_0xceae[_0x1c6856];return _0x310ca5;};'use strict';var multer=require(_0xecea('0x0'));var util=require(_0xecea('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xecea('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xecea('0x3'));var controller=require(_0xecea('0x4'));router[_0xecea('0x5')]('/',auth[_0xecea('0x6')](),controller[_0xecea('0x7')]);router[_0xecea('0x5')](_0xecea('0x8'),auth[_0xecea('0x6')](),controller[_0xecea('0x9')]);router[_0xecea('0x5')]('/:id',auth[_0xecea('0x6')](),controller['show']);router[_0xecea('0x5')](_0xecea('0xa'),auth[_0xecea('0x6')](),controller[_0xecea('0xb')]);router[_0xecea('0x5')](_0xecea('0xc'),auth[_0xecea('0x6')](),controller[_0xecea('0xd')]);router[_0xecea('0x5')](_0xecea('0xe'),auth[_0xecea('0x6')](),controller['getAgents']);router['post']('/',auth['isAuthenticated'](),controller[_0xecea('0xf')]);router['post'](_0xecea('0xc'),auth[_0xecea('0x6')](),controller[_0xecea('0x10')]);router[_0xecea('0x11')](_0xecea('0xe'),auth[_0xecea('0x6')](),controller['addAgents']);router[_0xecea('0x12')](_0xecea('0x13'),auth[_0xecea('0x6')](),controller['update']);router[_0xecea('0x14')]('/:id',auth[_0xecea('0x6')](),controller['destroy']);router[_0xecea('0x14')](_0xecea('0xc'),auth[_0xecea('0x6')](),controller[_0xecea('0x15')]);router[_0xecea('0x14')](_0xecea('0xe'),auth[_0xecea('0x6')](),controller[_0xecea('0x16')]);module['exports']=router;