29a6bdc98403f1035ed6afa651993f04a0aac65c
[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 _0x5c71=['/:id','isAuthenticated','show','create','update','exports','express','Router','../../components/interaction/service','./analyticExtractedReport.controller','get'];(function(_0x23a0b6,_0x1625ed){var _0x276250=function(_0x5bfd35){while(--_0x5bfd35){_0x23a0b6['push'](_0x23a0b6['shift']());}};_0x276250(++_0x1625ed);}(_0x5c71,0x124));var _0x15c7=function(_0x2c41fb,_0x24b8b6){_0x2c41fb=_0x2c41fb-0x0;var _0x242bbc=_0x5c71[_0x2c41fb];return _0x242bbc;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x15c7('0x0'));var router=express[_0x15c7('0x1')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x15c7('0x2'));var config=require('../../config/environment');var controller=require(_0x15c7('0x3'));router[_0x15c7('0x4')]('/',auth['isAuthenticated'](),controller['index']);router[_0x15c7('0x4')](_0x15c7('0x5'),auth[_0x15c7('0x6')](),controller[_0x15c7('0x7')]);router[_0x15c7('0x4')]('/:id/download',auth[_0x15c7('0x6')](),controller['download']);router['post']('/',auth['isAuthenticated'](),controller[_0x15c7('0x8')]);router['put'](_0x15c7('0x5'),auth[_0x15c7('0x6')](),controller[_0x15c7('0x9')]);router['delete']('/:id',auth[_0x15c7('0x6')](),controller['destroy']);module[_0x15c7('0xa')]=router;