tango-app-api-trax 3.7.43 → 3.7.45
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 +1 -1
- package/src/controllers/teaxFlag.controller.js +8 -5
- package/src/hbs/login-otp.hbs +943 -943
package/package.json
CHANGED
|
@@ -553,6 +553,7 @@ export const flagCardsV1 = async ( req, res ) => {
|
|
|
553
553
|
[
|
|
554
554
|
{ store_id: { $in: storeId } },
|
|
555
555
|
{ store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } },
|
|
556
|
+
{ aiStoreList: { $in: storeId } },
|
|
556
557
|
] :
|
|
557
558
|
[
|
|
558
559
|
{ store_id: { $in: storeId } },
|
|
@@ -578,6 +579,7 @@ export const flagCardsV1 = async ( req, res ) => {
|
|
|
578
579
|
];
|
|
579
580
|
|
|
580
581
|
const getOverallChecklistData = await processedchecklistService.aggregate( findQuery );
|
|
582
|
+
console.log( '🚀 ~ flagCardsV1 ~ getOverallChecklistData:', getOverallChecklistData );
|
|
581
583
|
|
|
582
584
|
if ( !getOverallChecklistData.length ) {
|
|
583
585
|
const resVal = {
|
|
@@ -606,7 +608,7 @@ export const flagCardsV1 = async ( req, res ) => {
|
|
|
606
608
|
{
|
|
607
609
|
client_id: clientId,
|
|
608
610
|
publish: true,
|
|
609
|
-
checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] },
|
|
611
|
+
checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] },
|
|
610
612
|
},
|
|
611
613
|
{ checkListType: 1 },
|
|
612
614
|
);
|
|
@@ -618,6 +620,7 @@ export const flagCardsV1 = async ( req, res ) => {
|
|
|
618
620
|
const detectionPayload = { fromDate, toDate, storeId, clientId };
|
|
619
621
|
const lambdaURL = 'https://f65azvtljclaxp6l7rnx65cdmm0lcgvp.lambda-url.ap-south-1.on.aws/';
|
|
620
622
|
const resultData = await LamdaServiceCall( lambdaURL, detectionPayload );
|
|
623
|
+
console.log( '🚀 ~ flagCardsV1 ~ resultData:', resultData );
|
|
621
624
|
|
|
622
625
|
const published = publishedAiChecklists.map( ( val ) => val?.checkListType );
|
|
623
626
|
|
|
@@ -2738,7 +2741,7 @@ export const checklistDropdownV1 = async ( req, res ) => {
|
|
|
2738
2741
|
$or: [
|
|
2739
2742
|
{ questionFlag: { $gte: 1 } },
|
|
2740
2743
|
{ timeFlag: { $gte: 1 } },
|
|
2741
|
-
{ checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] } },
|
|
2744
|
+
{ checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] } },
|
|
2742
2745
|
{
|
|
2743
2746
|
runAIQuestionCount: { $gte: 1 },
|
|
2744
2747
|
},
|
|
@@ -2940,7 +2943,7 @@ export const flagComparisonCardsV2 = async ( req, res ) => {
|
|
|
2940
2943
|
{
|
|
2941
2944
|
client_id: requestData.clientId,
|
|
2942
2945
|
publish: true,
|
|
2943
|
-
checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] },
|
|
2946
|
+
checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] },
|
|
2944
2947
|
},
|
|
2945
2948
|
{ checkListType: 1 },
|
|
2946
2949
|
);
|
|
@@ -3042,7 +3045,7 @@ export const flagTablesV2 = async ( req, res ) => {
|
|
|
3042
3045
|
}
|
|
3043
3046
|
|
|
3044
3047
|
if ( requestData?.filter === 'all' ) {
|
|
3045
|
-
findAndQuery.push( { $or: [ { checkListType: { $in: [ 'custom', 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] } } ] } );
|
|
3048
|
+
findAndQuery.push( { $or: [ { checkListType: { $in: [ 'custom', 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] } } ] } );
|
|
3046
3049
|
} else if ( requestData?.filter === 'question' ) {
|
|
3047
3050
|
findAndQuery.push( { checkListType: 'custom' } );
|
|
3048
3051
|
findAndQuery.push( { questionFlag: { $gte: 1 } } );
|
|
@@ -3050,7 +3053,7 @@ export const flagTablesV2 = async ( req, res ) => {
|
|
|
3050
3053
|
findAndQuery.push( { checkListType: 'custom' } );
|
|
3051
3054
|
findAndQuery.push( { timeFlag: { $gte: 1 } } );
|
|
3052
3055
|
} else if ( requestData?.filter === 'detection' ) {
|
|
3053
|
-
findAndQuery.push( { checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] } } );
|
|
3056
|
+
findAndQuery.push( { checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] } } );
|
|
3054
3057
|
} else if ( requestData?.filter === 'runAI' ) {
|
|
3055
3058
|
if ( req.body.runAIChecklistName ) {
|
|
3056
3059
|
findAndQuery.push( { checkListName: { $in: req.body.runAIChecklistName } } );
|