tango-app-api-analysis-traffic 3.8.2-alpha.0 → 3.8.2-alpha.2
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
|
@@ -287,7 +287,7 @@ export async function footFallImages( req, res ) {
|
|
|
287
287
|
],
|
|
288
288
|
},
|
|
289
289
|
},
|
|
290
|
-
'_source': [ 'dateString', 'storeId', 'duplicateCount', 'footfallCount', 'employeeCount', 'houseKeepingCount', 'junkCount', 'status', 'ticketId', 'comments', 'userName', 'role', 'createdAt', 'email', 'houseKeepingACCount', 'duplicateACCount', 'employeeACCount','junkACCount', 'approverEmail', 'approverRole', 'approverUserName' ],
|
|
290
|
+
'_source': [ 'dateString', 'storeId', 'duplicateCount', 'footfallCount', 'employeeCount', 'houseKeepingCount', 'junkCount', 'status', 'ticketId', 'comments', 'userName', 'role', 'createdAt', 'email', 'houseKeepingACCount', 'duplicateACCount', 'employeeACCount', 'junkACCount', 'approverEmail', 'approverRole', 'approverUserName' ],
|
|
291
291
|
|
|
292
292
|
};
|
|
293
293
|
|
|
@@ -306,7 +306,7 @@ export async function footFallImages( req, res ) {
|
|
|
306
306
|
temp[1].employeeCount = getData?.body?.hits?.hits?.[0]?._source?.employeeACCount;
|
|
307
307
|
temp[1].houseKeepingCount = getData?.body?.hits?.hits?.[0]?._source?.houseKeepingACCount;
|
|
308
308
|
temp[1].duplicateCount = getData?.body?.hits?.hits?.[0]?._source?.duplicateACCount;
|
|
309
|
-
|
|
309
|
+
temp[1].junkCount = getData?.body?.hits?.hits?.[0]?._source?.junkACCount;
|
|
310
310
|
}
|
|
311
311
|
const LamdaURL = revop.getImages;
|
|
312
312
|
let resultData = await LamdaServiceCall( LamdaURL, inputData );
|
|
@@ -114,6 +114,13 @@ export async function mappingConfig( req, res, next ) {
|
|
|
114
114
|
} else {
|
|
115
115
|
next();
|
|
116
116
|
}
|
|
117
|
+
} else if ( inputData.revopsType === 'junk' ) {
|
|
118
|
+
if ( ( req?.user?.userType == 'client' && req?.user?.userType !== 'user ' ) || req?.user?.userType === 'tango' ) {
|
|
119
|
+
next();
|
|
120
|
+
return;
|
|
121
|
+
} else {
|
|
122
|
+
return res.sendError( 'Forbidden to junk mapping', 500 );
|
|
123
|
+
}
|
|
117
124
|
} else {
|
|
118
125
|
next();
|
|
119
126
|
}
|