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 _0x48dc=['put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated'];(function(_0x46fd15,_0x47fb06){var _0x394cbe=function(_0x24c597){while(--_0x24c597){_0x46fd15['push'](_0x46fd15['shift']());}};_0x394cbe(++_0x47fb06);}(_0x48dc,0xb0));var _0xc48d=function(_0x377a39,_0x210428){_0x377a39=_0x377a39-0x0;var _0x564166=_0x48dc[_0x377a39];return _0x564166;};'use strict';var multer=require(_0xc48d('0x0'));var util=require(_0xc48d('0x1'));var path=require(_0xc48d('0x2'));var timeout=require(_0xc48d('0x3'));var express=require('express');var router=express[_0xc48d('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xc48d('0x5'));var interaction=require(_0xc48d('0x6'));var config=require(_0xc48d('0x7'));var controller=require('./analyticTreeReport.controller');router[_0xc48d('0x8')]('/',auth['isAuthenticated'](),controller[_0xc48d('0x9')]);router[_0xc48d('0x8')]('/:id',auth[_0xc48d('0xa')](),controller['show']);router['post']('/',auth[_0xc48d('0xa')](),controller['create']);router[_0xc48d('0xb')](_0xc48d('0xc'),auth[_0xc48d('0xa')](),controller[_0xc48d('0xd')]);router[_0xc48d('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xc48d('0xf')]);module[_0xc48d('0x10')]=router;