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