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