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