decord/source/modules/private_channel_integrations/PrivateChannelIntegrationSystemMessageUtils.tsx

111 lines
5.5 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 7755
// Function ID: 61719
2026-07-20 16:05:17 +00:00
// Name: getPrivateChannelIntegrationAddedSystemMessageContent
2026-07-25 08:10:48 +00:00
// Dependencies: [653, 1212, 1921, 2]
2026-07-20 16:05:17 +00:00
// Exports: getPrivateChannelIntegrationAddedSystemMessageASTContent, getPrivateChannelIntegrationAddedSystemMessageContent, getPrivateChannelIntegrationRemovedSystemMessageASTContent, getPrivateChannelIntegrationRemovedSystemMessageContent
2026-07-28 08:39:19 +00:00
// Module 7755 (getPrivateChannelIntegrationAddedSystemMessageContent)
2026-07-23 10:11:24 +00:00
import ME from "ME";
let closure_3;
let closure_4;
({ HelpdeskArticles: closure_3, NOOP: closure_4 } = ME);
const result = require("wrapURL").fileFinishedImporting("modules/private_channel_integrations/PrivateChannelIntegrationSystemMessageUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getPrivateChannelIntegrationAddedSystemMessageContent = function getPrivateChannelIntegrationAddedSystemMessageContent(applicationNameHook) {
let application;
let username;
let usernameHook;
({ application, username, usernameHook } = applicationNameHook);
if (usernameHook === undefined) {
usernameHook = closure_4;
}
applicationNameHook = applicationNameHook.applicationNameHook;
if (applicationNameHook === undefined) {
applicationNameHook = closure_4;
}
if (null != application) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
let obj = { username, otherUsername: application.name, usernameHook, otherUsernameHook: applicationNameHook, helpCenterLink: importDefault(1921).getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
2026-07-23 10:11:24 +00:00
let formatResult = intl2.format(require(1212) /* getSystemLocale */.t.J8SaGy, obj);
2026-07-25 08:10:48 +00:00
const obj4 = importDefault(1921);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
obj = { username, usernameHook, helpCenterLink: importDefault(1921).getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
2026-07-23 10:11:24 +00:00
formatResult = intl.format(require(1212) /* getSystemLocale */.t["+6V2sd"], obj);
2026-07-25 08:10:48 +00:00
const obj2 = importDefault(1921);
2026-07-20 16:05:17 +00:00
}
return formatResult;
};
export const getPrivateChannelIntegrationRemovedSystemMessageContent = function getPrivateChannelIntegrationRemovedSystemMessageContent(applicationNameHook) {
let application;
let username;
let usernameHook;
({ application, username, usernameHook } = applicationNameHook);
if (usernameHook === undefined) {
usernameHook = closure_4;
}
applicationNameHook = applicationNameHook.applicationNameHook;
if (applicationNameHook === undefined) {
applicationNameHook = closure_4;
}
if (null != application) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
let obj = { username, otherUsername: application.name, usernameHook, otherUsernameHook: applicationNameHook, helpCenterLink: importDefault(1921).getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
2026-07-23 10:11:24 +00:00
let formatResult = intl2.format(require(1212) /* getSystemLocale */.t.eGCDak, obj);
2026-07-25 08:10:48 +00:00
const obj4 = importDefault(1921);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
obj = { username, usernameHook, helpCenterLink: importDefault(1921).getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
2026-07-23 10:11:24 +00:00
formatResult = intl.format(require(1212) /* getSystemLocale */.t.sAX6rs, obj);
2026-07-25 08:10:48 +00:00
const obj2 = importDefault(1921);
2026-07-20 16:05:17 +00:00
}
return formatResult;
};
export const getPrivateChannelIntegrationAddedSystemMessageASTContent = function getPrivateChannelIntegrationAddedSystemMessageASTContent(arg0) {
let application;
let medium;
let username;
let usernameOnClick;
({ application, username, usernameOnClick, medium } = arg0);
if (null != application) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
let obj = { username, otherUsername: application.name, usernameOnClick, otherUsernameOnClick: tmp, medium };
2026-07-25 08:10:48 +00:00
obj = { url: importDefault(1921).getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
2026-07-20 16:05:17 +00:00
obj.helpCenterLink = obj;
2026-07-23 10:11:24 +00:00
let formatToPartsResult = intl.formatToParts(require(1212) /* getSystemLocale */.t["8r+Z+I"], obj);
2026-07-25 08:10:48 +00:00
const obj3 = importDefault(1921);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { username, usernameOnClick, medium };
2026-07-25 08:10:48 +00:00
const obj1 = { url: importDefault(1921).getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
2026-07-20 16:05:17 +00:00
obj.helpCenterLink = obj1;
2026-07-23 10:11:24 +00:00
formatToPartsResult = intl2.formatToParts(require(1212) /* getSystemLocale */.t.ojysqe, obj);
2026-07-25 08:10:48 +00:00
const obj6 = importDefault(1921);
2026-07-20 16:05:17 +00:00
}
return formatToPartsResult;
};
export const getPrivateChannelIntegrationRemovedSystemMessageASTContent = function getPrivateChannelIntegrationRemovedSystemMessageASTContent(arg0) {
let application;
let medium;
let username;
let usernameOnClick;
({ application, username, usernameOnClick, medium } = arg0);
if (null != application) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
let obj = { username, otherUsername: application.name, usernameOnClick, otherUsernameOnClick: tmp, medium };
2026-07-25 08:10:48 +00:00
obj = { url: importDefault(1921).getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
2026-07-20 16:05:17 +00:00
obj.helpCenterLink = obj;
2026-07-23 10:11:24 +00:00
let formatToPartsResult = intl.formatToParts(require(1212) /* getSystemLocale */.t.zmc0mq, obj);
2026-07-25 08:10:48 +00:00
const obj3 = importDefault(1921);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { username, usernameOnClick, medium };
2026-07-25 08:10:48 +00:00
const obj1 = { url: importDefault(1921).getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
2026-07-20 16:05:17 +00:00
obj.helpCenterLink = obj1;
2026-07-23 10:11:24 +00:00
formatToPartsResult = intl2.formatToParts(require(1212) /* getSystemLocale */.t["x2CN/Z"], obj);
2026-07-25 08:10:48 +00:00
const obj6 = importDefault(1921);
2026-07-20 16:05:17 +00:00
}
return formatToPartsResult;
};