abd917db24abcb5b9da0d712692e20db17f28a5e
[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 _0x26a2=['../../components/interaction/service','./analyticTreeReport.controller','get','isAuthenticated','index','show','post','put','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x18977a,_0x143840){var _0x45c6db=function(_0x4918c1){while(--_0x4918c1){_0x18977a['push'](_0x18977a['shift']());}};_0x45c6db(++_0x143840);}(_0x26a2,0x150));var _0x226a=function(_0x225bf0,_0x285360){_0x225bf0=_0x225bf0-0x0;var _0x648c60=_0x26a2[_0x225bf0];return _0x648c60;};'use strict';var multer=require('multer');var util=require(_0x226a('0x0'));var path=require(_0x226a('0x1'));var timeout=require(_0x226a('0x2'));var express=require(_0x226a('0x3'));var router=express[_0x226a('0x4')]();var fs_extra=require(_0x226a('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x226a('0x6'));var config=require('../../config/environment');var controller=require(_0x226a('0x7'));router[_0x226a('0x8')]('/',auth[_0x226a('0x9')](),controller[_0x226a('0xa')]);router[_0x226a('0x8')]('/:id',auth[_0x226a('0x9')](),controller[_0x226a('0xb')]);router[_0x226a('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0x226a('0xd')](_0x226a('0xe'),auth[_0x226a('0x9')](),controller[_0x226a('0xf')]);router[_0x226a('0x10')](_0x226a('0xe'),auth['isAuthenticated'](),controller[_0x226a('0x11')]);module[_0x226a('0x12')]=router;