Built motion from commit (unavailable).|2.5.31
[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 _0xd0ae=['show','post','create','delete','destroy','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','get','isAuthenticated','/:id'];(function(_0x1e2e94,_0x1e9929){var _0x40b884=function(_0x4bc259){while(--_0x4bc259){_0x1e2e94['push'](_0x1e2e94['shift']());}};_0x40b884(++_0x1e9929);}(_0xd0ae,0x1ae));var _0xed0a=function(_0x38e7a0,_0x365d95){_0x38e7a0=_0x38e7a0-0x0;var _0x1ba1b4=_0xd0ae[_0x38e7a0];return _0x1ba1b4;};'use strict';var multer=require(_0xed0a('0x0'));var util=require(_0xed0a('0x1'));var path=require(_0xed0a('0x2'));var timeout=require(_0xed0a('0x3'));var express=require('express');var router=express[_0xed0a('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xed0a('0x5'));var interaction=require(_0xed0a('0x6'));var config=require(_0xed0a('0x7'));var controller=require(_0xed0a('0x8'));router[_0xed0a('0x9')]('/',auth[_0xed0a('0xa')](),controller['index']);router[_0xed0a('0x9')](_0xed0a('0xb'),auth[_0xed0a('0xa')](),controller[_0xed0a('0xc')]);router[_0xed0a('0xd')]('/',auth[_0xed0a('0xa')](),controller[_0xed0a('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0xed0a('0xf')](_0xed0a('0xb'),auth[_0xed0a('0xa')](),controller[_0xed0a('0x10')]);module['exports']=router;