cd3f41243b45db18eaae72a88775ad2ee70d5275
[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 _0x2528=['put','delete','/:id','connect-timeout','Router','../../components/auth/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated','index','show','/:id/preview','preview','/:id/run','run','/:id/query','post','create'];(function(_0x5c6299,_0x11bd28){var _0x23b564=function(_0x329ed6){while(--_0x329ed6){_0x5c6299['push'](_0x5c6299['shift']());}};_0x23b564(++_0x11bd28);}(_0x2528,0x75));var _0x8252=function(_0x5afe83,_0x25044e){_0x5afe83=_0x5afe83-0x0;var _0x3380bf=_0x2528[_0x5afe83];return _0x3380bf;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x8252('0x0'));var express=require('express');var router=express[_0x8252('0x1')]();var fs_extra=require('fs-extra');var auth=require(_0x8252('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x8252('0x3'));var controller=require(_0x8252('0x4'));router[_0x8252('0x5')]('/',auth[_0x8252('0x6')](),controller[_0x8252('0x7')]);router[_0x8252('0x5')]('/:id',auth[_0x8252('0x6')](),controller[_0x8252('0x8')]);router[_0x8252('0x5')](_0x8252('0x9'),auth[_0x8252('0x6')](),controller[_0x8252('0xa')]);router['get'](_0x8252('0xb'),auth['isAuthenticated'](),controller[_0x8252('0xc')]);router[_0x8252('0x5')](_0x8252('0xd'),auth['isAuthenticated'](),controller['query']);router[_0x8252('0xe')]('/',auth[_0x8252('0x6')](),controller[_0x8252('0xf')]);router[_0x8252('0x10')]('/:id',auth[_0x8252('0x6')](),controller['update']);router[_0x8252('0x11')](_0x8252('0x12'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;