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 _0x3d65=['put','update','delete','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','index','/:id','isAuthenticated','show'];(function(_0x4fd109,_0x33c503){var _0x30f0a6=function(_0xc11c0d){while(--_0xc11c0d){_0x4fd109['push'](_0x4fd109['shift']());}};_0x30f0a6(++_0x33c503);}(_0x3d65,0xc3));var _0x53d6=function(_0x166b14,_0x3ce1ce){_0x166b14=_0x166b14-0x0;var _0x5dc7c6=_0x3d65[_0x166b14];return _0x5dc7c6;};'use strict';var multer=require(_0x53d6('0x0'));var util=require(_0x53d6('0x1'));var path=require(_0x53d6('0x2'));var timeout=require(_0x53d6('0x3'));var express=require(_0x53d6('0x4'));var router=express[_0x53d6('0x5')]();var fs_extra=require(_0x53d6('0x6'));var auth=require(_0x53d6('0x7'));var interaction=require(_0x53d6('0x8'));var config=require('../../config/environment');var controller=require('./analyticTreeReport.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x53d6('0x9')]);router['get'](_0x53d6('0xa'),auth[_0x53d6('0xb')](),controller[_0x53d6('0xc')]);router['post']('/',auth[_0x53d6('0xb')](),controller['create']);router[_0x53d6('0xd')]('/:id',auth[_0x53d6('0xb')](),controller[_0x53d6('0xe')]);router[_0x53d6('0xf')](_0x53d6('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;