Built motion from commit 14588770.|2.5.38
[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 _0xa7bc=['create','update','destroy','exports','connect-timeout','../../components/auth/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated','index','/:id','show','/:id/preview','preview','/:id/run','run','/:id/query','query'];(function(_0x3070dc,_0x40cf11){var _0x431489=function(_0x49bc2a){while(--_0x49bc2a){_0x3070dc['push'](_0x3070dc['shift']());}};_0x431489(++_0x40cf11);}(_0xa7bc,0xc2));var _0xca7b=function(_0x4a61ae,_0x9dc91d){_0x4a61ae=_0x4a61ae-0x0;var _0x429538=_0xa7bc[_0x4a61ae];return _0x429538;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xca7b('0x0'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xca7b('0x1'));var interaction=require('../../components/interaction/service');var config=require(_0xca7b('0x2'));var controller=require(_0xca7b('0x3'));router[_0xca7b('0x4')]('/',auth[_0xca7b('0x5')](),controller[_0xca7b('0x6')]);router['get'](_0xca7b('0x7'),auth['isAuthenticated'](),controller[_0xca7b('0x8')]);router['get'](_0xca7b('0x9'),auth[_0xca7b('0x5')](),controller[_0xca7b('0xa')]);router['get'](_0xca7b('0xb'),auth[_0xca7b('0x5')](),controller[_0xca7b('0xc')]);router[_0xca7b('0x4')](_0xca7b('0xd'),auth['isAuthenticated'](),controller[_0xca7b('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0xca7b('0xf')]);router['put'](_0xca7b('0x7'),auth[_0xca7b('0x5')](),controller[_0xca7b('0x10')]);router['delete'](_0xca7b('0x7'),auth[_0xca7b('0x5')](),controller[_0xca7b('0x11')]);module[_0xca7b('0x12')]=router;