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