439343770caa085cc6e047e589b37d31bfd602c5
[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 _0x42a4=['index','/:id','preview','run','/:id/query','post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated'];(function(_0x13ecf8,_0x3a9000){var _0x44d738=function(_0x403b9f){while(--_0x403b9f){_0x13ecf8['push'](_0x13ecf8['shift']());}};_0x44d738(++_0x3a9000);}(_0x42a4,0x1d9));var _0x442a=function(_0x3beea0,_0x416691){_0x3beea0=_0x3beea0-0x0;var _0x314eb1=_0x42a4[_0x3beea0];return _0x314eb1;};'use strict';var multer=require(_0x442a('0x0'));var util=require(_0x442a('0x1'));var path=require(_0x442a('0x2'));var timeout=require(_0x442a('0x3'));var express=require(_0x442a('0x4'));var router=express['Router']();var fs_extra=require(_0x442a('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x442a('0x6'));var config=require(_0x442a('0x7'));var controller=require(_0x442a('0x8'));router[_0x442a('0x9')]('/',auth[_0x442a('0xa')](),controller[_0x442a('0xb')]);router[_0x442a('0x9')](_0x442a('0xc'),auth['isAuthenticated'](),controller['show']);router['get']('/:id/preview',auth[_0x442a('0xa')](),controller[_0x442a('0xd')]);router[_0x442a('0x9')]('/:id/run',auth[_0x442a('0xa')](),controller[_0x442a('0xe')]);router[_0x442a('0x9')](_0x442a('0xf'),auth['isAuthenticated'](),controller['query']);router[_0x442a('0x10')]('/',auth['isAuthenticated'](),controller[_0x442a('0x11')]);router[_0x442a('0x12')](_0x442a('0xc'),auth[_0x442a('0xa')](),controller[_0x442a('0x13')]);router[_0x442a('0x14')](_0x442a('0xc'),auth[_0x442a('0xa')](),controller['destroy']);module[_0x442a('0x15')]=router;