Built motion from commit 994c64e1.|2.6.1
[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 _0x71f7=['/:id','show','preview','/:id/run','run','/:id/query','post','create','put','delete','destroy','exports','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./analyticDefaultReport.controller','get','isAuthenticated','index'];(function(_0x114939,_0x1b4fa6){var _0x49d0b7=function(_0x5c048e){while(--_0x5c048e){_0x114939['push'](_0x114939['shift']());}};_0x49d0b7(++_0x1b4fa6);}(_0x71f7,0xbc));var _0x771f=function(_0x42a21b,_0x3220ee){_0x42a21b=_0x42a21b-0x0;var _0x515e0d=_0x71f7[_0x42a21b];return _0x515e0d;};'use strict';var multer=require('multer');var util=require(_0x771f('0x0'));var path=require(_0x771f('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x771f('0x2')]();var fs_extra=require(_0x771f('0x3'));var auth=require(_0x771f('0x4'));var interaction=require(_0x771f('0x5'));var config=require('../../config/environment');var controller=require(_0x771f('0x6'));router[_0x771f('0x7')]('/',auth[_0x771f('0x8')](),controller[_0x771f('0x9')]);router['get'](_0x771f('0xa'),auth[_0x771f('0x8')](),controller[_0x771f('0xb')]);router[_0x771f('0x7')]('/:id/preview',auth[_0x771f('0x8')](),controller[_0x771f('0xc')]);router['get'](_0x771f('0xd'),auth['isAuthenticated'](),controller[_0x771f('0xe')]);router[_0x771f('0x7')](_0x771f('0xf'),auth[_0x771f('0x8')](),controller['query']);router[_0x771f('0x10')]('/',auth['isAuthenticated'](),controller[_0x771f('0x11')]);router[_0x771f('0x12')](_0x771f('0xa'),auth[_0x771f('0x8')](),controller['update']);router[_0x771f('0x13')](_0x771f('0xa'),auth['isAuthenticated'](),controller[_0x771f('0x14')]);module[_0x771f('0x15')]=router;