b476dfba62c74e663615bed260b62d9d1af06e8b
[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 _0xbc83=['isAuthenticated','index','show','/:id/download','post','create','put','/:id','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get'];(function(_0x263a74,_0xc31414){var _0x2aa86c=function(_0x382896){while(--_0x382896){_0x263a74['push'](_0x263a74['shift']());}};_0x2aa86c(++_0xc31414);}(_0xbc83,0x6f));var _0x3bc8=function(_0x2b441e,_0x5e8864){_0x2b441e=_0x2b441e-0x0;var _0x3b9fdb=_0xbc83[_0x2b441e];return _0x3b9fdb;};'use strict';var multer=require(_0x3bc8('0x0'));var util=require(_0x3bc8('0x1'));var path=require(_0x3bc8('0x2'));var timeout=require(_0x3bc8('0x3'));var express=require(_0x3bc8('0x4'));var router=express[_0x3bc8('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x3bc8('0x6'));var interaction=require(_0x3bc8('0x7'));var config=require('../../config/environment');var controller=require('./analyticExtractedReport.controller');router[_0x3bc8('0x8')]('/',auth[_0x3bc8('0x9')](),controller[_0x3bc8('0xa')]);router[_0x3bc8('0x8')]('/:id',auth[_0x3bc8('0x9')](),controller[_0x3bc8('0xb')]);router['get'](_0x3bc8('0xc'),auth['isAuthenticated'](),controller['download']);router[_0x3bc8('0xd')]('/',auth[_0x3bc8('0x9')](),controller[_0x3bc8('0xe')]);router[_0x3bc8('0xf')](_0x3bc8('0x10'),auth[_0x3bc8('0x9')](),controller['update']);router[_0x3bc8('0x11')](_0x3bc8('0x10'),auth[_0x3bc8('0x9')](),controller[_0x3bc8('0x12')]);module[_0x3bc8('0x13')]=router;