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