b3d3f63e249a5a5736b7a6c892e7f5f48d1df4c5
[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 _0x52bc=['/:id','isAuthenticated','show','/:id/preview','preview','/:id/run','post','create','put','delete','exports','connect-timeout','Router','fs-extra','../../components/interaction/service','./analyticCustomReport.controller','get'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x52bc,0xf9));var _0xc52b=function(_0x24f31c,_0x54144e){_0x24f31c=_0x24f31c-0x0;var _0x22cfc4=_0x52bc[_0x24f31c];return _0x22cfc4;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xc52b('0x0'));var express=require('express');var router=express[_0xc52b('0x1')]();var fs_extra=require(_0xc52b('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0xc52b('0x3'));var config=require('../../config/environment');var controller=require(_0xc52b('0x4'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xc52b('0x5')](_0xc52b('0x6'),auth[_0xc52b('0x7')](),controller[_0xc52b('0x8')]);router[_0xc52b('0x5')](_0xc52b('0x9'),auth[_0xc52b('0x7')](),controller[_0xc52b('0xa')]);router['get'](_0xc52b('0xb'),auth[_0xc52b('0x7')](),controller['run']);router[_0xc52b('0x5')]('/:id/query',auth[_0xc52b('0x7')](),controller['query']);router[_0xc52b('0xc')]('/',auth[_0xc52b('0x7')](),controller[_0xc52b('0xd')]);router[_0xc52b('0xe')]('/:id',auth[_0xc52b('0x7')](),controller['update']);router[_0xc52b('0xf')](_0xc52b('0x6'),auth['isAuthenticated'](),controller['destroy']);module[_0xc52b('0x10')]=router;