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