Built motion from commit da617fac.|2.6.6
[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 _0xe040=['post','create','put','update','delete','destroy','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','get','isAuthenticated','/:id','show'];(function(_0x3e5086,_0x48f4a2){var _0xfeb102=function(_0x5a945f){while(--_0x5a945f){_0x3e5086['push'](_0x3e5086['shift']());}};_0xfeb102(++_0x48f4a2);}(_0xe040,0x1af));var _0x0e04=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe040[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x0e04('0x0'));var timeout=require('connect-timeout');var express=require(_0x0e04('0x1'));var router=express[_0x0e04('0x2')]();var fs_extra=require(_0x0e04('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x0e04('0x4'));var config=require(_0x0e04('0x5'));var controller=require(_0x0e04('0x6'));router[_0x0e04('0x7')]('/',auth[_0x0e04('0x8')](),controller['index']);router[_0x0e04('0x7')](_0x0e04('0x9'),auth[_0x0e04('0x8')](),controller[_0x0e04('0xa')]);router[_0x0e04('0xb')]('/',auth[_0x0e04('0x8')](),controller[_0x0e04('0xc')]);router[_0x0e04('0xd')](_0x0e04('0x9'),auth['isAuthenticated'](),controller[_0x0e04('0xe')]);router[_0x0e04('0xf')](_0x0e04('0x9'),auth[_0x0e04('0x8')](),controller[_0x0e04('0x10')]);module['exports']=router;