tango-app-api-trax 3.9.46 → 3.9.47

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "3.9.46",
3
+ "version": "3.9.47",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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,6 +619,8 @@ export const zoneList = async ( req, res ) => {
619
619
  'Unattended Detection',
620
620
  'Employee Monitoring',
621
621
  'Customer Unattended',
622
+ 'Store Huddle Adherence Checklist',
623
+ 'Activity Monitoring',
622
624
 
623
625
 
624
626
  ];
@@ -4142,7 +4144,7 @@ async function updateOpenSearch( user, data ) {
4142
4144
  export const aiChecklist = async ( req, res ) => {
4143
4145
  try {
4144
4146
  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' ];
4147
+ 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
4148
  let checklistDetails = [];
4147
4149
  let publishList = [];
4148
4150
  let unpublishList = [];
@@ -4155,7 +4157,7 @@ export const aiChecklist = async ( req, res ) => {
4155
4157
  checklistDetails = [ ...publishList, ...unpublishList ];
4156
4158
 
4157
4159
  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 ) ) {
4160
+ if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'storehygienemonitoring', 'employeemonitoring', 'activitymonitoring' ].includes( item.checkListType ) ) {
4159
4161
  item.storeCount = storeDetails;
4160
4162
  }
4161
4163
  } );