Built motion from commit 775e2a94.|2.6.3
[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 _0x2b80=['exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id/download','download','isAuthenticated','create','update','delete','/:id','destroy'];(function(_0x38ff46,_0x5ae3c0){var _0x1596c7=function(_0x290c79){while(--_0x290c79){_0x38ff46['push'](_0x38ff46['shift']());}};_0x1596c7(++_0x5ae3c0);}(_0x2b80,0x131));var _0x02b8=function(_0x15108f,_0x5119b0){_0x15108f=_0x15108f-0x0;var _0x17aafb=_0x2b80[_0x15108f];return _0x17aafb;};'use strict';var multer=require(_0x02b8('0x0'));var util=require(_0x02b8('0x1'));var path=require('path');var timeout=require(_0x02b8('0x2'));var express=require(_0x02b8('0x3'));var router=express['Router']();var fs_extra=require(_0x02b8('0x4'));var auth=require(_0x02b8('0x5'));var interaction=require(_0x02b8('0x6'));var config=require(_0x02b8('0x7'));var controller=require('./analyticExtractedReport.controller');router[_0x02b8('0x8')]('/',auth['isAuthenticated'](),controller[_0x02b8('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0x02b8('0x8')](_0x02b8('0xa'),auth['isAuthenticated'](),controller[_0x02b8('0xb')]);router['post']('/',auth[_0x02b8('0xc')](),controller[_0x02b8('0xd')]);router['put']('/:id',auth[_0x02b8('0xc')](),controller[_0x02b8('0xe')]);router[_0x02b8('0xf')](_0x02b8('0x10'),auth[_0x02b8('0xc')](),controller[_0x02b8('0x11')]);module[_0x02b8('0x12')]=router;