tango-app-api-infra 3.9.14 → 3.9.15
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
|
@@ -4935,6 +4935,11 @@ export async function sendSqsMessage( inputData, tempId, getStoreType, storeId )
|
|
|
4935
4935
|
process_type: 'live',
|
|
4936
4936
|
revop_type: 'footfall',
|
|
4937
4937
|
temp_id: tempId,
|
|
4938
|
+
tempId1: inputData?.log?.temp1 || '',
|
|
4939
|
+
tempIds: inputData?.log?.tempIds || '',
|
|
4940
|
+
mapping: JSON.stringify( inputData?.log?.mapping ) || '',
|
|
4941
|
+
managerEyeZoneHit: inputData?.log?.managerEyeZoneHit || '',
|
|
4942
|
+
managerEyeZoneQuery: inputData?.log?.managerEyeZoneQuery || '',
|
|
4938
4943
|
time: Date.now(),
|
|
4939
4944
|
createdAt: new Date(),
|
|
4940
4945
|
createIST: dayjs().tz( 'Asia/Kolkata' ).format( 'YYYY-MM-DD' ),
|
|
@@ -6200,6 +6205,16 @@ export async function multiCloseTicket( req, res ) {
|
|
|
6200
6205
|
|
|
6201
6206
|
// Find tempIds that exist in both revopInfo results and manager mapping
|
|
6202
6207
|
const temp = [];
|
|
6208
|
+
const temp1 = [];
|
|
6209
|
+
tempIds.filter( ( tid ) => mapping[tid] !== null ? temp1.push( { temp: mapping[tid], managerEye: tid } ) : '' );
|
|
6210
|
+
|
|
6211
|
+
inputData.log = {
|
|
6212
|
+
managerEyeZoneHit: managerEyeZoneHit || '',
|
|
6213
|
+
mapping: mapping || '',
|
|
6214
|
+
tempIds: tempIds || '',
|
|
6215
|
+
temp1: temp1 || '',
|
|
6216
|
+
managerEyeZoneQuery: managerEyeZoneQuery|| '',
|
|
6217
|
+
};
|
|
6203
6218
|
tempIds.filter( ( tid ) => mapping[tid] !== null ? temp.push( { tempId: mapping[tid] } ) : '' );
|
|
6204
6219
|
const isSendMessge = await sendSqsMessage( ticket, temp, getStoreType, storeId );
|
|
6205
6220
|
if ( isSendMessge == true ) {
|
|
@@ -824,6 +824,16 @@ export async function ticketCreation( req, res, next ) {
|
|
|
824
824
|
|
|
825
825
|
// Find tempIds that exist in both revopInfo results and manager mapping
|
|
826
826
|
const temp = [];
|
|
827
|
+
const temp1 = [];
|
|
828
|
+
tempIds.filter( ( tid ) => mapping[tid] !== null ? temp1.push( { temp: mapping[tid], managerEye: tid } ) : '' );
|
|
829
|
+
|
|
830
|
+
inputData.log = {
|
|
831
|
+
managerEyeZoneHit: managerEyeZoneHit || '',
|
|
832
|
+
mapping: mapping || '',
|
|
833
|
+
tempIds: tempIds || '',
|
|
834
|
+
temp1: temp1 || '',
|
|
835
|
+
managerEyeZoneQuery: managerEyeZoneQuery|| '',
|
|
836
|
+
};
|
|
827
837
|
tempIds.filter( ( tid ) => mapping[tid] !== null ? temp.push( { tempId: mapping[tid] } ) : '' );
|
|
828
838
|
const isSendMessge = await sendSqsMessage( inputData, temp, getStoreType, inputData.storeId );
|
|
829
839
|
if ( isSendMessge == true ) {
|
|
@@ -1821,6 +1831,16 @@ export async function ticketReview( req, res, next ) {
|
|
|
1821
1831
|
|
|
1822
1832
|
// Find tempIds that exist in both revopInfo results and manager mapping
|
|
1823
1833
|
const temp = [];
|
|
1834
|
+
const temp1 = [];
|
|
1835
|
+
tempIds.filter( ( tid ) => mapping[tid] !== null ? temp1.push( { temp: mapping[tid], managerEye: tid } ) : '' );
|
|
1836
|
+
|
|
1837
|
+
inputData.log = {
|
|
1838
|
+
managerEyeZoneHit: managerEyeZoneHit || '',
|
|
1839
|
+
mapping: mapping || '',
|
|
1840
|
+
tempIds: tempIds || '',
|
|
1841
|
+
temp1: temp1 || '',
|
|
1842
|
+
managerEyeZoneQuery: managerEyeZoneQuery|| '',
|
|
1843
|
+
};
|
|
1824
1844
|
tempIds.filter( ( tid ) => mapping[tid] !== null ? temp.push( { tempId: mapping[tid] } ) : '' );
|
|
1825
1845
|
const isSendMessge = await sendSqsMessage( inputData, temp, getStoreType, inputData.storeId );
|
|
1826
1846
|
if ( isSendMessge == true ) {
|
|
@@ -2609,6 +2629,16 @@ export async function ticketApprove( req, res, next ) {
|
|
|
2609
2629
|
|
|
2610
2630
|
// Find tempIds that exist in both revopInfo results and manager mapping
|
|
2611
2631
|
const temp = [];
|
|
2632
|
+
const temp1 = [];
|
|
2633
|
+
tempIds.filter( ( tid ) => mapping[tid] !== null ? temp1.push( { temp: mapping[tid], managerEye: tid } ) : '' );
|
|
2634
|
+
|
|
2635
|
+
inputData.log = {
|
|
2636
|
+
managerEyeZoneHit: managerEyeZoneHit || '',
|
|
2637
|
+
mapping: mapping || '',
|
|
2638
|
+
tempIds: tempIds || '',
|
|
2639
|
+
temp1: temp1 || '',
|
|
2640
|
+
managerEyeZoneQuery: managerEyeZoneQuery|| '',
|
|
2641
|
+
};
|
|
2612
2642
|
tempIds.filter( ( tid ) => mapping[tid] !== null ? temp.push( { tempId: mapping[tid] } ) : '' );
|
|
2613
2643
|
const isSendMessge = await sendSqsMessage( inputData, temp, getStoreType, inputData.storeId );
|
|
2614
2644
|
if ( isSendMessge == true ) {
|