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