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