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