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