1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x1f59=['./analyticCustomReport.controller','get','isAuthenticated','show','/:id/preview','run','query','post','put','/:id','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x5cad2d,_0x21820a){var _0x1ab2a1=function(_0x1e6383){while(--_0x1e6383){_0x5cad2d['push'](_0x5cad2d['shift']());}};_0x1ab2a1(++_0x21820a);}(_0x1f59,0x167));var _0x91f5=function(_0x48cc90,_0x1ed37e){_0x48cc90=_0x48cc90-0x0;var _0x6149a9=_0x1f59[_0x48cc90];return _0x6149a9;};'use strict';var multer=require(_0x91f5('0x0'));var util=require('util');var path=require(_0x91f5('0x1'));var timeout=require(_0x91f5('0x2'));var express=require(_0x91f5('0x3'));var router=express[_0x91f5('0x4')]();var fs_extra=require(_0x91f5('0x5'));var auth=require(_0x91f5('0x6'));var interaction=require(_0x91f5('0x7'));var config=require(_0x91f5('0x8'));var controller=require(_0x91f5('0x9'));router[_0x91f5('0xa')]('/',auth[_0x91f5('0xb')](),controller['index']);router['get']('/:id',auth[_0x91f5('0xb')](),controller[_0x91f5('0xc')]);router['get'](_0x91f5('0xd'),auth['isAuthenticated'](),controller['preview']);router[_0x91f5('0xa')]('/:id/run',auth[_0x91f5('0xb')](),controller[_0x91f5('0xe')]);router[_0x91f5('0xa')]('/:id/query',auth[_0x91f5('0xb')](),controller[_0x91f5('0xf')]);router[_0x91f5('0x10')]('/',auth[_0x91f5('0xb')](),controller['create']);router[_0x91f5('0x11')](_0x91f5('0x12'),auth['isAuthenticated'](),controller[_0x91f5('0x13')]);router[_0x91f5('0x14')](_0x91f5('0x12'),auth[_0x91f5('0xb')](),controller[_0x91f5('0x15')]);module[_0x91f5('0x16')]=router;