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