decord/source/modules/gateway/PrivateChannelHidingExperiment.tsx

26 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 12816
// Function ID: 12817
2026-07-20 16:05:17 +00:00
// Name: getCachedPrivateChannelObfuscation
2026-08-05 07:35:12 +00:00
// Dependencies: [1452, 2, 12817]
2026-07-20 16:05:17 +00:00
// Exports: isChannelMetadataIntegrityCheckEnabled, isChannelMetadataObfuscationEnabled, useIsChannelMetadataObfuscationEnabled
2026-08-05 07:35:12 +00:00
// Module 12816 (getCachedPrivateChannelObfuscation)
2026-07-23 10:11:24 +00:00
import ApexExperiment from "ApexExperiment";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
const obj = { 1: null, 2: { enableObfuscation: true, enableIntegrityCheck: false }, 3: { enableObfuscation: true, enableIntegrityCheck: true } };
obj[3] = { enableObfuscation: false, enableIntegrityCheck: false };
let closure_0 = ApexExperiment.createApexExperiment({ name: "2026-02-private-channel-hiding", kind: "user", defaultConfig: { enableObfuscation: false, enableIntegrityCheck: false }, variations: obj });
2026-07-23 10:11:24 +00:00
const result = require("PRIVATE_CHANNEL_OBFUSCATION_KEY").fileFinishedImporting("modules/gateway/PrivateChannelHidingExperiment.tsx");
export const getCachedPrivateChannelObfuscation = require("PRIVATE_CHANNEL_OBFUSCATION_KEY").getCachedPrivateChannelObfuscation;
export const PRIVATE_CHANNEL_OBFUSCATION_KEY = require("PRIVATE_CHANNEL_OBFUSCATION_KEY").PRIVATE_CHANNEL_OBFUSCATION_KEY;
2026-07-20 16:05:17 +00:00
export const isChannelMetadataObfuscationEnabled = function isChannelMetadataObfuscationEnabled(GatewaySocket) {
return store.getConfig({ location: GatewaySocket }).enableObfuscation;
};
export const useIsChannelMetadataObfuscationEnabled = function useIsChannelMetadataObfuscationEnabled(App) {
return store.useConfig({ location: App }).enableObfuscation;
};
export const isChannelMetadataIntegrityCheckEnabled = function isChannelMetadataIntegrityCheckEnabled(scheduleIntegrityCheck) {
return store.getConfig({ location: scheduleIntegrityCheck }).enableIntegrityCheck;
};