Built motion from commit 9d7072cc.|2.5.39
[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 _0xf81d=['show','post','create','delete','destroy','exports','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x30ca16,_0x11198d){var _0x49dae3=function(_0xfa0f8f){while(--_0xfa0f8f){_0x30ca16['push'](_0x30ca16['shift']());}};_0x49dae3(++_0x11198d);}(_0xf81d,0x1d7));var _0xdf81=function(_0x1b90d2,_0x2968e8){_0x1b90d2=_0x1b90d2-0x0;var _0x2fe1e0=_0xf81d[_0x1b90d2];return _0x2fe1e0;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xdf81('0x0'));var timeout=require(_0xdf81('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xdf81('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0xdf81('0x3'));var config=require(_0xdf81('0x4'));var controller=require('./analyticTreeReport.controller');router[_0xdf81('0x5')]('/',auth[_0xdf81('0x6')](),controller[_0xdf81('0x7')]);router[_0xdf81('0x5')](_0xdf81('0x8'),auth[_0xdf81('0x6')](),controller[_0xdf81('0x9')]);router[_0xdf81('0xa')]('/',auth['isAuthenticated'](),controller[_0xdf81('0xb')]);router['put'](_0xdf81('0x8'),auth[_0xdf81('0x6')](),controller['update']);router[_0xdf81('0xc')]('/:id',auth['isAuthenticated'](),controller[_0xdf81('0xd')]);module[_0xdf81('0xe')]=router;