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 _0x8b8e=['/:id','isAuthenticated','show','post','put','update','multer','util','path','fs-extra','../../components/auth/service','get','index'];(function(_0x1715f0,_0x3311fe){var _0x504209=function(_0x4dfad9){while(--_0x4dfad9){_0x1715f0['push'](_0x1715f0['shift']());}};_0x504209(++_0x3311fe);}(_0x8b8e,0xd6));var _0xe8b8=function(_0x2056b3,_0x31ff9d){_0x2056b3=_0x2056b3-0x0;var _0x3d3d5c=_0x8b8e[_0x2056b3];return _0x3d3d5c;};'use strict';var multer=require(_0xe8b8('0x0'));var util=require(_0xe8b8('0x1'));var path=require(_0xe8b8('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0xe8b8('0x3'));var auth=require(_0xe8b8('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./analyticTreeReport.controller');router[_0xe8b8('0x5')]('/',auth['isAuthenticated'](),controller[_0xe8b8('0x6')]);router[_0xe8b8('0x5')](_0xe8b8('0x7'),auth[_0xe8b8('0x8')](),controller[_0xe8b8('0x9')]);router[_0xe8b8('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0xe8b8('0xb')](_0xe8b8('0x7'),auth[_0xe8b8('0x8')](),controller[_0xe8b8('0xc')]);router['delete']('/:id',auth[_0xe8b8('0x8')](),controller['destroy']);module['exports']=router;