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