d22d806206b4e5efe53db57d0dc2da5c68b770ca
[motion2.git] / server / api / analyticDefaultReport / 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 _0xc00b=['put','update','delete','destroy','exports','multer','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','/:id/preview','run','post','create'];(function(_0x374fab,_0x32970f){var _0x3dc5c9=function(_0x5d1160){while(--_0x5d1160){_0x374fab['push'](_0x374fab['shift']());}};_0x3dc5c9(++_0x32970f);}(_0xc00b,0x1e5));var _0xbc00=function(_0x12a020,_0x85b476){_0x12a020=_0x12a020-0x0;var _0x63cddd=_0xc00b[_0x12a020];return _0x63cddd;};'use strict';var multer=require(_0xbc00('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xbc00('0x1'));var router=express['Router']();var fs_extra=require(_0xbc00('0x2'));var auth=require(_0xbc00('0x3'));var interaction=require(_0xbc00('0x4'));var config=require(_0xbc00('0x5'));var controller=require('./analyticDefaultReport.controller');router[_0xbc00('0x6')]('/',auth['isAuthenticated'](),controller[_0xbc00('0x7')]);router['get'](_0xbc00('0x8'),auth[_0xbc00('0x9')](),controller[_0xbc00('0xa')]);router[_0xbc00('0x6')](_0xbc00('0xb'),auth[_0xbc00('0x9')](),controller['preview']);router[_0xbc00('0x6')]('/:id/run',auth[_0xbc00('0x9')](),controller[_0xbc00('0xc')]);router[_0xbc00('0x6')]('/:id/query',auth[_0xbc00('0x9')](),controller['query']);router[_0xbc00('0xd')]('/',auth['isAuthenticated'](),controller[_0xbc00('0xe')]);router[_0xbc00('0xf')](_0xbc00('0x8'),auth['isAuthenticated'](),controller[_0xbc00('0x10')]);router[_0xbc00('0x11')](_0xbc00('0x8'),auth['isAuthenticated'](),controller[_0xbc00('0x12')]);module[_0xbc00('0x13')]=router;