Built motion from commit c738b9ac.|2.6.25
[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 _0xb344=['../../components/interaction/service','../../config/environment','./analyticDefaultReport.controller','isAuthenticated','index','/:id','show','get','run','query','post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x5b6983,_0x53d5f9){var _0x1e2978=function(_0x44f668){while(--_0x44f668){_0x5b6983['push'](_0x5b6983['shift']());}};_0x1e2978(++_0x53d5f9);}(_0xb344,0x152));var _0x4b34=function(_0x59aecc,_0x255014){_0x59aecc=_0x59aecc-0x0;var _0x46b112=_0xb344[_0x59aecc];return _0x46b112;};'use strict';var multer=require(_0x4b34('0x0'));var util=require(_0x4b34('0x1'));var path=require(_0x4b34('0x2'));var timeout=require(_0x4b34('0x3'));var express=require(_0x4b34('0x4'));var router=express[_0x4b34('0x5')]();var fs_extra=require(_0x4b34('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x4b34('0x7'));var config=require(_0x4b34('0x8'));var controller=require(_0x4b34('0x9'));router['get']('/',auth[_0x4b34('0xa')](),controller[_0x4b34('0xb')]);router['get'](_0x4b34('0xc'),auth['isAuthenticated'](),controller[_0x4b34('0xd')]);router[_0x4b34('0xe')]('/:id/preview',auth[_0x4b34('0xa')](),controller['preview']);router['get']('/:id/run',auth['isAuthenticated'](),controller[_0x4b34('0xf')]);router['get']('/:id/query',auth['isAuthenticated'](),controller[_0x4b34('0x10')]);router[_0x4b34('0x11')]('/',auth[_0x4b34('0xa')](),controller[_0x4b34('0x12')]);router[_0x4b34('0x13')](_0x4b34('0xc'),auth[_0x4b34('0xa')](),controller[_0x4b34('0x14')]);router[_0x4b34('0x15')](_0x4b34('0xc'),auth[_0x4b34('0xa')](),controller['destroy']);module[_0x4b34('0x16')]=router;