decord/alpha/source/modules/debug/serializePushNotifcationLogs.tsx

59 lines
1.8 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 13140
// Function ID: 13141
// Name: serializePushNotifcationLogs
2026-10-03 08:58:59 +00:00
// Dependencies: [1085, 510, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-13 12:43:34 +00:00
// Module 13140 (serializePushNotifcationLogs)
import Storage3 from "Storage" /* 510 */;
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let c2;
let c3;
({ DEVICE_TOKEN: c2, DEVICE_VOIP_TOKEN: c3 } = Constants);
const result = size.fileFinishedImporting("modules/debug/serializePushNotifcationLogs.tsx");
2026-07-20 16:05:17 +00:00
export default function serializePushNotificationLogs(arr, arg1) {
2026-10-03 08:58:59 +00:00
let closure_0 = arg1;
2026-07-20 16:05:17 +00:00
if (0 === arr.length) {
return "No logs";
} else {
const Storage = Storage3.Storage;
2026-10-03 08:58:59 +00:00
const value = Storage.get(React2);
const Storage2 = Storage3.Storage;
2026-10-03 08:58:59 +00:00
const value2 = Storage2.get(_false);
2026-07-20 16:05:17 +00:00
let str2 = "";
if (null != value) {
2026-10-03 08:58:59 +00:00
let tmp = globalThis;
2026-07-23 10:11:24 +00:00
let _HermesInternal = HermesInternal;
2026-10-03 08:58:59 +00:00
let str = "Device Token: ";
2026-07-20 16:05:17 +00:00
str2 = "Device Token: " + value;
}
let str3 = "";
if (null != value2) {
2026-07-23 10:11:24 +00:00
let _HermesInternal2 = HermesInternal;
str3 = "Device Voip Token: " + value2;
2026-07-20 16:05:17 +00:00
}
const mapped = arr.map((silent) => {
2026-10-03 08:58:59 +00:00
let combined;
2026-07-20 16:05:17 +00:00
let str = "Displayed";
if (silent.silent) {
str = "Silent";
}
2026-10-03 08:58:59 +00:00
const tmp = closure_0;
if (tmp) {
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal;
2026-10-03 08:58:59 +00:00
combined = "" + silent.channelId + " - " + silent.messageId;
2026-07-20 16:05:17 +00:00
} else {
const _HermesInternal = HermesInternal;
combined = "" + silent.title + " - " + silent.content;
}
2026-10-03 08:58:59 +00:00
const date = new Date(silent.receivedTimestamp);
return "" + date.toISOString() + " [" + silent.type + "] " + str + " - " + combined;
2026-07-20 16:05:17 +00:00
});
const _HermesInternal3 = HermesInternal;
return "" + str2 + "\n" + str3 + "\n\n" + mapped.join("\n");
}
};