a17eddf32ac915270208eee31cf0b0d451e6745c
[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 _0xb174=['util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','isAuthenticated','index','get','/:id','show','/:id/preview','run','/:id/query','query','post','create','put','update','delete','destroy','exports'];(function(_0x4d3b1f,_0x25ef1e){var _0x5a0429=function(_0x32a1e2){while(--_0x32a1e2){_0x4d3b1f['push'](_0x4d3b1f['shift']());}};_0x5a0429(++_0x25ef1e);}(_0xb174,0x1c2));var _0x4b17=function(_0x593d46,_0x510490){_0x593d46=_0x593d46-0x0;var _0x176807=_0xb174[_0x593d46];return _0x176807;};'use strict';var multer=require('multer');var util=require(_0x4b17('0x0'));var path=require(_0x4b17('0x1'));var timeout=require(_0x4b17('0x2'));var express=require(_0x4b17('0x3'));var router=express[_0x4b17('0x4')]();var fs_extra=require(_0x4b17('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x4b17('0x6'));var config=require(_0x4b17('0x7'));var controller=require(_0x4b17('0x8'));router['get']('/',auth[_0x4b17('0x9')](),controller[_0x4b17('0xa')]);router[_0x4b17('0xb')](_0x4b17('0xc'),auth['isAuthenticated'](),controller[_0x4b17('0xd')]);router[_0x4b17('0xb')](_0x4b17('0xe'),auth['isAuthenticated'](),controller['preview']);router[_0x4b17('0xb')]('/:id/run',auth[_0x4b17('0x9')](),controller[_0x4b17('0xf')]);router[_0x4b17('0xb')](_0x4b17('0x10'),auth[_0x4b17('0x9')](),controller[_0x4b17('0x11')]);router[_0x4b17('0x12')]('/',auth['isAuthenticated'](),controller[_0x4b17('0x13')]);router[_0x4b17('0x14')](_0x4b17('0xc'),auth[_0x4b17('0x9')](),controller[_0x4b17('0x15')]);router[_0x4b17('0x16')](_0x4b17('0xc'),auth[_0x4b17('0x9')](),controller[_0x4b17('0x17')]);module[_0x4b17('0x18')]=router;