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 _0x4b9c=['util','express','Router','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/run','run','/:id/query','query','post','create','put','update','delete','destroy','exports','multer'];(function(_0x5bf4fa,_0xc0399f){var _0x519465=function(_0x57f937){while(--_0x57f937){_0x5bf4fa['push'](_0x5bf4fa['shift']());}};_0x519465(++_0xc0399f);}(_0x4b9c,0x1b8));var _0xc4b9=function(_0x1b095d,_0x165325){_0x1b095d=_0x1b095d-0x0;var _0x3b3480=_0x4b9c[_0x1b095d];return _0x3b3480;};'use strict';var multer=require(_0xc4b9('0x0'));var util=require(_0xc4b9('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xc4b9('0x2'));var router=express[_0xc4b9('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xc4b9('0x4'));var controller=require('./analyticCustomReport.controller');router['get']('/',auth[_0xc4b9('0x5')](),controller[_0xc4b9('0x6')]);router[_0xc4b9('0x7')](_0xc4b9('0x8'),auth[_0xc4b9('0x5')](),controller[_0xc4b9('0x9')]);router[_0xc4b9('0x7')]('/:id/preview',auth[_0xc4b9('0x5')](),controller['preview']);router[_0xc4b9('0x7')](_0xc4b9('0xa'),auth['isAuthenticated'](),controller[_0xc4b9('0xb')]);router[_0xc4b9('0x7')](_0xc4b9('0xc'),auth[_0xc4b9('0x5')](),controller[_0xc4b9('0xd')]);router[_0xc4b9('0xe')]('/',auth[_0xc4b9('0x5')](),controller[_0xc4b9('0xf')]);router[_0xc4b9('0x10')](_0xc4b9('0x8'),auth['isAuthenticated'](),controller[_0xc4b9('0x11')]);router[_0xc4b9('0x12')](_0xc4b9('0x8'),auth[_0xc4b9('0x5')](),controller[_0xc4b9('0x13')]);module[_0xc4b9('0x14')]=router;