Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / analyticExtractedReport / 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 _0x7178=['download','create','put','/:id','delete','exports','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticExtractedReport.controller','isAuthenticated','/:id/download'];(function(_0x1d568c,_0x4f3351){var _0x10f9fb=function(_0x4c85d4){while(--_0x4c85d4){_0x1d568c['push'](_0x1d568c['shift']());}};_0x10f9fb(++_0x4f3351);}(_0x7178,0x116));var _0x8717=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0x7178[_0x3ab51d];return _0x29a04e;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x8717('0x0'));var express=require(_0x8717('0x1'));var router=express[_0x8717('0x2')]();var fs_extra=require(_0x8717('0x3'));var auth=require(_0x8717('0x4'));var interaction=require(_0x8717('0x5'));var config=require(_0x8717('0x6'));var controller=require(_0x8717('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth[_0x8717('0x8')](),controller['show']);router['get'](_0x8717('0x9'),auth[_0x8717('0x8')](),controller[_0x8717('0xa')]);router['post']('/',auth[_0x8717('0x8')](),controller[_0x8717('0xb')]);router[_0x8717('0xc')](_0x8717('0xd'),auth[_0x8717('0x8')](),controller['update']);router[_0x8717('0xe')](_0x8717('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x8717('0xf')]=router;