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 _0x24a3=['create','update','delete','destroy','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','get','isAuthenticated','index','/:id','show','post'];(function(_0x2a4eb7,_0x24fa94){var _0x1be8a0=function(_0x2b6970){while(--_0x2b6970){_0x2a4eb7['push'](_0x2a4eb7['shift']());}};_0x1be8a0(++_0x24fa94);}(_0x24a3,0x1df));var _0x324a=function(_0x2842c8,_0x24aa17){_0x2842c8=_0x2842c8-0x0;var _0x418768=_0x24a3[_0x2842c8];return _0x418768;};'use strict';var multer=require(_0x324a('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x324a('0x1'));var express=require(_0x324a('0x2'));var router=express[_0x324a('0x3')]();var fs_extra=require(_0x324a('0x4'));var auth=require(_0x324a('0x5'));var interaction=require(_0x324a('0x6'));var config=require(_0x324a('0x7'));var controller=require(_0x324a('0x8'));router[_0x324a('0x9')]('/',auth[_0x324a('0xa')](),controller[_0x324a('0xb')]);router[_0x324a('0x9')](_0x324a('0xc'),auth[_0x324a('0xa')](),controller[_0x324a('0xd')]);router[_0x324a('0xe')]('/',auth[_0x324a('0xa')](),controller[_0x324a('0xf')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x324a('0x10')]);router[_0x324a('0x11')](_0x324a('0xc'),auth[_0x324a('0xa')](),controller[_0x324a('0x12')]);module['exports']=router;