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