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