c2a5877501a59368a84bb0c04c4389344a0bf196
[motion2.git] / server / api / analyticCustomReport / 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 _0xbf00=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./analyticCustomReport.controller','get','isAuthenticated','index','/:id/preview','preview','/:id/run','run','/:id/query','query','create','/:id','update','destroy','exports','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xbf00,0xaf));var _0x0bf0=function(_0x44d385,_0x1a313a){_0x44d385=_0x44d385-0x0;var _0x5c2cc5=_0xbf00[_0x44d385];return _0x5c2cc5;};'use strict';var multer=require('multer');var util=require(_0x0bf0('0x0'));var path=require('path');var timeout=require(_0x0bf0('0x1'));var express=require(_0x0bf0('0x2'));var router=express[_0x0bf0('0x3')]();var fs_extra=require(_0x0bf0('0x4'));var auth=require(_0x0bf0('0x5'));var interaction=require(_0x0bf0('0x6'));var config=require('../../config/environment');var controller=require(_0x0bf0('0x7'));router[_0x0bf0('0x8')]('/',auth[_0x0bf0('0x9')](),controller[_0x0bf0('0xa')]);router[_0x0bf0('0x8')]('/:id',auth[_0x0bf0('0x9')](),controller['show']);router[_0x0bf0('0x8')](_0x0bf0('0xb'),auth[_0x0bf0('0x9')](),controller[_0x0bf0('0xc')]);router[_0x0bf0('0x8')](_0x0bf0('0xd'),auth[_0x0bf0('0x9')](),controller[_0x0bf0('0xe')]);router[_0x0bf0('0x8')](_0x0bf0('0xf'),auth['isAuthenticated'](),controller[_0x0bf0('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0x0bf0('0x11')]);router['put'](_0x0bf0('0x12'),auth['isAuthenticated'](),controller[_0x0bf0('0x13')]);router['delete'](_0x0bf0('0x12'),auth[_0x0bf0('0x9')](),controller[_0x0bf0('0x14')]);module[_0x0bf0('0x15')]=router;