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