8d5ad484d9a4a9ae1d9ee935fc8e194ef3c57066
[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 _0x56f0=['update','delete','/:id','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated','index','show','/:id/preview','preview','/:id/run','query','post','create','put'];(function(_0x4ae829,_0x2c842c){var _0x256b31=function(_0x34f104){while(--_0x34f104){_0x4ae829['push'](_0x4ae829['shift']());}};_0x256b31(++_0x2c842c);}(_0x56f0,0xdd));var _0x056f=function(_0x345705,_0x2829c1){_0x345705=_0x345705-0x0;var _0x22c250=_0x56f0[_0x345705];return _0x22c250;};'use strict';var multer=require(_0x056f('0x0'));var util=require('util');var path=require(_0x056f('0x1'));var timeout=require(_0x056f('0x2'));var express=require('express');var router=express[_0x056f('0x3')]();var fs_extra=require(_0x056f('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x056f('0x5'));var config=require(_0x056f('0x6'));var controller=require(_0x056f('0x7'));router[_0x056f('0x8')]('/',auth[_0x056f('0x9')](),controller[_0x056f('0xa')]);router[_0x056f('0x8')]('/:id',auth[_0x056f('0x9')](),controller[_0x056f('0xb')]);router[_0x056f('0x8')](_0x056f('0xc'),auth[_0x056f('0x9')](),controller[_0x056f('0xd')]);router['get'](_0x056f('0xe'),auth['isAuthenticated'](),controller['run']);router[_0x056f('0x8')]('/:id/query',auth[_0x056f('0x9')](),controller[_0x056f('0xf')]);router[_0x056f('0x10')]('/',auth['isAuthenticated'](),controller[_0x056f('0x11')]);router[_0x056f('0x12')]('/:id',auth[_0x056f('0x9')](),controller[_0x056f('0x13')]);router[_0x056f('0x14')](_0x056f('0x15'),auth[_0x056f('0x9')](),controller[_0x056f('0x16')]);module[_0x056f('0x17')]=router;