28a68998c717232cfe8184d8862ad16d788c04de
[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 _0x2077=['show','download','create','put','update','/:id','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./analyticExtractedReport.controller','get','isAuthenticated'];(function(_0x2df2f2,_0x319911){var _0x139f29=function(_0x39590f){while(--_0x39590f){_0x2df2f2['push'](_0x2df2f2['shift']());}};_0x139f29(++_0x319911);}(_0x2077,0xec));var _0x7207=function(_0x1d9552,_0xe32266){_0x1d9552=_0x1d9552-0x0;var _0x8ba92d=_0x2077[_0x1d9552];return _0x8ba92d;};'use strict';var multer=require(_0x7207('0x0'));var util=require(_0x7207('0x1'));var path=require(_0x7207('0x2'));var timeout=require(_0x7207('0x3'));var express=require('express');var router=express[_0x7207('0x4')]();var fs_extra=require(_0x7207('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x7207('0x6'));var config=require(_0x7207('0x7'));var controller=require(_0x7207('0x8'));router[_0x7207('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x7207('0x9')]('/:id',auth[_0x7207('0xa')](),controller[_0x7207('0xb')]);router[_0x7207('0x9')]('/:id/download',auth[_0x7207('0xa')](),controller[_0x7207('0xc')]);router['post']('/',auth[_0x7207('0xa')](),controller[_0x7207('0xd')]);router[_0x7207('0xe')]('/:id',auth[_0x7207('0xa')](),controller[_0x7207('0xf')]);router['delete'](_0x7207('0x10'),auth['isAuthenticated'](),controller[_0x7207('0x11')]);module[_0x7207('0x12')]=router;