tango-app-api-trax 3.9.46 → 3.9.48
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
|
@@ -1264,7 +1264,7 @@ async function insertData( requestData ) {
|
|
|
1264
1264
|
client_id: getCLconfig.client_id,
|
|
1265
1265
|
aiStoreList: allQuestion.length ? allQuestion.map( ( store ) => store.store_id ) : [],
|
|
1266
1266
|
};
|
|
1267
|
-
if ( [ 'storeopenandclose', 'mobileusagedetection', 'uniformdetection', 'customerunattended', 'staffleftinthemiddle', 'scrum', 'cleaning', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'employeemonitoring' ].includes( getCLconfig.checkListType ) ) {
|
|
1267
|
+
if ( [ 'storeopenandclose', 'mobileusagedetection', 'uniformdetection', 'customerunattended', 'staffleftinthemiddle', 'scrum', 'cleaning', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'employeemonitoring', 'activitymonitoring' ].includes( getCLconfig.checkListType ) ) {
|
|
1268
1268
|
let processData = {
|
|
1269
1269
|
aiStoreList: allQuestion.length ? allQuestion.map( ( store ) => {
|
|
1270
1270
|
return { storeName: store.storeName, storeId: store.store_id, events: store.events };
|
|
@@ -473,7 +473,7 @@ export const getConfigDetails = async ( req, res ) => {
|
|
|
473
473
|
isdeleted: false,
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
if ( [ 'storeopenandclose', 'uniformdetection', 'mobileusagedetection', 'lossprevention', 'opertaionchecklist', 'dailystorechecklist', 'storehygiene' ].includes( type ) ) {
|
|
476
|
+
if ( [ 'storeopenandclose', 'uniformdetection', 'mobileusagedetection', 'lossprevention', 'opertaionchecklist', 'dailystorechecklist', 'storehygiene', 'scrum', 'customerunattended' ].includes( type ) ) {
|
|
477
477
|
query.checkListType = type;
|
|
478
478
|
query.client_id = { $exists: false };
|
|
479
479
|
}
|
|
@@ -619,8 +619,8 @@ export const zoneList = async ( req, res ) => {
|
|
|
619
619
|
'Unattended Detection',
|
|
620
620
|
'Employee Monitoring',
|
|
621
621
|
'Customer Unattended',
|
|
622
|
-
|
|
623
|
-
|
|
622
|
+
'Store Huddle Adherence Checklist',
|
|
623
|
+
'Activity Monitoring',
|
|
624
624
|
];
|
|
625
625
|
const allowedChecklistsStreams = [
|
|
626
626
|
'Camera Angle Change Compliance',
|
|
@@ -4142,7 +4142,7 @@ async function updateOpenSearch( user, data ) {
|
|
|
4142
4142
|
export const aiChecklist = async ( req, res ) => {
|
|
4143
4143
|
try {
|
|
4144
4144
|
let storeDetails = await storeService.count( { clientId: req.query.clientId, status: 'active' } );
|
|
4145
|
-
let aiList = [ 'mobileusagedetection', 'storeopenandclose', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'cleaning', 'scrum', 'suspiciousactivity', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'occupancydetection', 'employeemonitoring' ];
|
|
4145
|
+
let aiList = [ 'mobileusagedetection', 'storeopenandclose', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'cleaning', 'scrum', 'suspiciousactivity', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'occupancydetection', 'employeemonitoring', 'activitymonitoring' ];
|
|
4146
4146
|
let checklistDetails = [];
|
|
4147
4147
|
let publishList = [];
|
|
4148
4148
|
let unpublishList = [];
|
|
@@ -4155,7 +4155,7 @@ export const aiChecklist = async ( req, res ) => {
|
|
|
4155
4155
|
checklistDetails = [ ...publishList, ...unpublishList ];
|
|
4156
4156
|
|
|
4157
4157
|
checklistDetails.forEach( ( item ) => {
|
|
4158
|
-
if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'storehygienemonitoring', 'employeemonitoring' ].includes( item.checkListType ) ) {
|
|
4158
|
+
if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'storehygienemonitoring', 'employeemonitoring', 'activitymonitoring' ].includes( item.checkListType ) ) {
|
|
4159
4159
|
item.storeCount = storeDetails;
|
|
4160
4160
|
}
|
|
4161
4161
|
} );
|