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