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