b32e5def762cdf8a1d09d2ce7d1d8eb52ef4ebce
[motion2.git] / server / api / analyticTreeReport / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2524=['show','post','create','put','update','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x29d6e6,_0x264220){var _0xc75ff0=function(_0x214f6b){while(--_0x214f6b){_0x29d6e6['push'](_0x29d6e6['shift']());}};_0xc75ff0(++_0x264220);}(_0x2524,0x8c));var _0x4252=function(_0x54e756,_0x18fa40){_0x54e756=_0x54e756-0x0;var _0x351911=_0x2524[_0x54e756];return _0x351911;};'use strict';var multer=require(_0x4252('0x0'));var util=require(_0x4252('0x1'));var path=require('path');var timeout=require(_0x4252('0x2'));var express=require(_0x4252('0x3'));var router=express[_0x4252('0x4')]();var fs_extra=require(_0x4252('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x4252('0x6'));var config=require(_0x4252('0x7'));var controller=require('./analyticTreeReport.controller');router[_0x4252('0x8')]('/',auth[_0x4252('0x9')](),controller[_0x4252('0xa')]);router[_0x4252('0x8')](_0x4252('0xb'),auth[_0x4252('0x9')](),controller[_0x4252('0xc')]);router[_0x4252('0xd')]('/',auth[_0x4252('0x9')](),controller[_0x4252('0xe')]);router[_0x4252('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x4252('0x10')]);router['delete']('/:id',auth[_0x4252('0x9')](),controller[_0x4252('0x11')]);module[_0x4252('0x12')]=router;