Built motion from commit 994c64e1.|2.6.1
[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 _0x7dbe=['../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','isAuthenticated','index','get','/:id','/:id/preview','run','post','create','delete','multer','Router','../../components/auth/service'];(function(_0x3b2f50,_0x34606f){var _0x447953=function(_0xb35780){while(--_0xb35780){_0x3b2f50['push'](_0x3b2f50['shift']());}};_0x447953(++_0x34606f);}(_0x7dbe,0x129));var _0xe7db=function(_0x804253,_0x1074fb){_0x804253=_0x804253-0x0;var _0xe81f46=_0x7dbe[_0x804253];return _0xe81f46;};'use strict';var multer=require(_0xe7db('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe7db('0x1')]();var fs_extra=require('fs-extra');var auth=require(_0xe7db('0x2'));var interaction=require(_0xe7db('0x3'));var config=require(_0xe7db('0x4'));var controller=require(_0xe7db('0x5'));router['get']('/',auth[_0xe7db('0x6')](),controller[_0xe7db('0x7')]);router[_0xe7db('0x8')](_0xe7db('0x9'),auth[_0xe7db('0x6')](),controller['show']);router['get'](_0xe7db('0xa'),auth[_0xe7db('0x6')](),controller['preview']);router[_0xe7db('0x8')]('/:id/run',auth[_0xe7db('0x6')](),controller[_0xe7db('0xb')]);router['get']('/:id/query',auth[_0xe7db('0x6')](),controller['query']);router[_0xe7db('0xc')]('/',auth[_0xe7db('0x6')](),controller[_0xe7db('0xd')]);router['put'](_0xe7db('0x9'),auth['isAuthenticated'](),controller['update']);router[_0xe7db('0xe')](_0xe7db('0x9'),auth[_0xe7db('0x6')](),controller['destroy']);module['exports']=router;