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