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