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 _0x6818=['/:id','/:id/members','/:id/teams','/:id/users','getAgents','post','create','addTeams','addAgents','delete','removeAgents','exports','path','../../components/interaction/service','./mailQueue.controller','get','/describe','isAuthenticated','describe'];(function(_0x16a223,_0x31b6e8){var _0x5ded66=function(_0x25eb5f){while(--_0x25eb5f){_0x16a223['push'](_0x16a223['shift']());}};_0x5ded66(++_0x31b6e8);}(_0x6818,0x1ae));var _0x8681=function(_0x4b030a,_0x163428){_0x4b030a=_0x4b030a-0x0;var _0x430fdd=_0x6818[_0x4b030a];return _0x430fdd;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x8681('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x8681('0x1'));var config=require('../../config/environment');var controller=require(_0x8681('0x2'));router[_0x8681('0x3')]('/',auth['isAuthenticated'](),controller['index']);router[_0x8681('0x3')](_0x8681('0x4'),auth[_0x8681('0x5')](),controller[_0x8681('0x6')]);router[_0x8681('0x3')](_0x8681('0x7'),auth[_0x8681('0x5')](),controller['show']);router[_0x8681('0x3')](_0x8681('0x8'),auth[_0x8681('0x5')](),controller['getMembers']);router['get'](_0x8681('0x9'),auth[_0x8681('0x5')](),controller['getTeams']);router[_0x8681('0x3')](_0x8681('0xa'),auth['isAuthenticated'](),controller[_0x8681('0xb')]);router[_0x8681('0xc')]('/',auth[_0x8681('0x5')](),controller[_0x8681('0xd')]);router[_0x8681('0xc')]('/:id/teams',auth['isAuthenticated'](),controller[_0x8681('0xe')]);router[_0x8681('0xc')]('/:id/users',auth[_0x8681('0x5')](),controller[_0x8681('0xf')]);router['put'](_0x8681('0x7'),auth[_0x8681('0x5')](),controller['update']);router[_0x8681('0x10')](_0x8681('0x7'),auth[_0x8681('0x5')](),controller['destroy']);router[_0x8681('0x10')](_0x8681('0x9'),auth[_0x8681('0x5')](),controller['removeTeams']);router[_0x8681('0x10')]('/:id/users',auth[_0x8681('0x5')](),controller[_0x8681('0x11')]);module[_0x8681('0x12')]=router;