Built motion from commit 43538d75.|2.5.35
[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 _0x6b77=['express','fs-extra','../../config/environment','./analyticDefaultReport.controller','get','isAuthenticated','show','/:id/preview','preview','/:id/run','run','query','post','create','put','/:id','update','delete','exports','multer','util','path'];(function(_0x53bcc3,_0x364374){var _0x47c959=function(_0x40ef7d){while(--_0x40ef7d){_0x53bcc3['push'](_0x53bcc3['shift']());}};_0x47c959(++_0x364374);}(_0x6b77,0xc3));var _0x76b7=function(_0x2d607b,_0x455193){_0x2d607b=_0x2d607b-0x0;var _0x5be31d=_0x6b77[_0x2d607b];return _0x5be31d;};'use strict';var multer=require(_0x76b7('0x0'));var util=require(_0x76b7('0x1'));var path=require(_0x76b7('0x2'));var timeout=require('connect-timeout');var express=require(_0x76b7('0x3'));var router=express['Router']();var fs_extra=require(_0x76b7('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x76b7('0x5'));var controller=require(_0x76b7('0x6'));router[_0x76b7('0x7')]('/',auth[_0x76b7('0x8')](),controller['index']);router['get']('/:id',auth[_0x76b7('0x8')](),controller[_0x76b7('0x9')]);router[_0x76b7('0x7')](_0x76b7('0xa'),auth['isAuthenticated'](),controller[_0x76b7('0xb')]);router[_0x76b7('0x7')](_0x76b7('0xc'),auth[_0x76b7('0x8')](),controller[_0x76b7('0xd')]);router[_0x76b7('0x7')]('/:id/query',auth[_0x76b7('0x8')](),controller[_0x76b7('0xe')]);router[_0x76b7('0xf')]('/',auth['isAuthenticated'](),controller[_0x76b7('0x10')]);router[_0x76b7('0x11')](_0x76b7('0x12'),auth[_0x76b7('0x8')](),controller[_0x76b7('0x13')]);router[_0x76b7('0x14')](_0x76b7('0x12'),auth[_0x76b7('0x8')](),controller['destroy']);module[_0x76b7('0x15')]=router;