tango-app-api-analysis-zone 3.1.13 → 3.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -672,3 +672,23 @@ export const zonePasserByTable430Export = async ( req, res ) => {
|
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
674
|
|
|
675
|
+
export const interactionTableV1 = async ( req, res ) => {
|
|
676
|
+
try {
|
|
677
|
+
let reqestData = req.body;
|
|
678
|
+
let LamdaURL = 'https://ciwoce4ore3iyx5x5eicp2lpii0yutva.lambda-url.ap-south-1.on.aws/';
|
|
679
|
+
let resultData = await LamdaServiceCall( LamdaURL, reqestData );
|
|
680
|
+
if ( resultData ) {
|
|
681
|
+
if ( resultData.status_code == '200' ) {
|
|
682
|
+
return res.sendSuccess( resultData );
|
|
683
|
+
} else {
|
|
684
|
+
return res.sendError( 'No Content', 204 );
|
|
685
|
+
}
|
|
686
|
+
} else {
|
|
687
|
+
return res.sendError( 'No Content', 204 );
|
|
688
|
+
}
|
|
689
|
+
} catch ( error ) {
|
|
690
|
+
logger.error( { error: error, message: req.query, function: 'interactionTableV1' } );
|
|
691
|
+
return res.sendError( { error: error }, 500 );
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
zoneSegmentationTableExport,
|
|
36
36
|
zonePasserByTableV1,
|
|
37
37
|
zonePasserByTable430Export,
|
|
38
|
+
interactionTableV1,
|
|
38
39
|
} from '../controllers/analysisZoneV1.controllers.js';
|
|
39
40
|
|
|
40
41
|
analysisZoneRouter
|
|
@@ -135,5 +136,10 @@ analysisZoneRouter
|
|
|
135
136
|
userType: [ 'tango', 'client' ], access: [
|
|
136
137
|
{ featureName: 'TangoEye', name: 'ZoneTag', permissions: [] },
|
|
137
138
|
],
|
|
138
|
-
} ), validate( validationDtos.validatezoneSegmaentationTableParams ), zonePasserByTable430Export )
|
|
139
|
+
} ), validate( validationDtos.validatezoneSegmaentationTableParams ), zonePasserByTable430Export )
|
|
140
|
+
.post( '/interactionTable_v1', isAllowedSessionHandler, isAllowedClient, accessVerification( {
|
|
141
|
+
userType: [ 'tango', 'client' ], access: [
|
|
142
|
+
{ featureName: 'TangoEye', name: 'ZoneTag', permissions: [] },
|
|
143
|
+
],
|
|
144
|
+
} ), validate( validationDtos.validatezoneSegmaentationTableParams ), interactionTableV1 );
|
|
139
145
|
export default analysisZoneRouter;
|