Files
arch-panel-extension-browser/src/background/config.js

40 lines
2.1 KiB
JavaScript

(() => {
const COMCIP_ORIGIN = "https://comcipapic-oalprod.integration.ocp.oraclecloud.com";
const COMCIP_APP_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_semc/live/webApps/Dashboard/?page=shell&shell=main&main=service-requests-detailed-view`;
const COMCIP_QUERY_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_semc/live;profile=PROD/services/auth/1.1/proxy/oalsetCRMRestAPIElastic/uri/https/eeho.fa.us2.oraclecloud.com/crmRestApi/searchResources/latest/custom-actions/queries`;
const COMCIP_CLIENT_ID_PROBE_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_semc/live;profile=PROD/services/auth/1.1/proxy/oalsetSeaaSOKECustomRestAPI/uri/https/gxpap.oracle.com/oalcrm/service/set/seaas/crm/countries`;
const COMCIP_TIME_ENTRY_APP_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_timeentrymobile/live/webApps/timeentry/`;
const COMCIP_TIME_ENTRY_CLIENT_ID_PROBE_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_timeentrymobile/live;profile=PROD/services/auth/1.1/proxy/oke_seaas/uri/https/gxpap.oracle.com/oalcrm/service/set/seaas/crm/lookups?lookupType=SCTA_TASK_TYPE&type=CUSTOM`;
const COMCIP_TIME_ENTRY_APP_VERSION = "version_1774016034953";
const COMCIP_TAB_URL_PATTERN =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_semc/live*`;
const COMCIP_TIME_ENTRY_TAB_URL_PATTERN =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_timeentrymobile/live*`;
const SPA_WORKBENCH_FRAME_URL =
"https://spa.oracle.com/oalcrm/web/api/g2m-consumer-application/ui/index.html?ojr=workload_workbench";
const SPA_WORKBENCH_FRAME_ID = "arch-panel-extension-spa-frame";
const SPA_WORKBENCH_FRAME_HOST_ID = "arch-panel-extension-spa-frame-host";
const SPA_FRAME_DNR_RULE_ID = 92001;
globalThis.ArchPanelBackgroundConfig = Object.freeze({
COMCIP_ORIGIN,
COMCIP_APP_URL,
COMCIP_QUERY_URL,
COMCIP_CLIENT_ID_PROBE_URL,
COMCIP_TIME_ENTRY_APP_URL,
COMCIP_TIME_ENTRY_CLIENT_ID_PROBE_URL,
COMCIP_TIME_ENTRY_APP_VERSION,
COMCIP_TAB_URL_PATTERN,
COMCIP_TIME_ENTRY_TAB_URL_PATTERN,
SPA_WORKBENCH_FRAME_URL,
SPA_WORKBENCH_FRAME_ID,
SPA_WORKBENCH_FRAME_HOST_ID,
SPA_FRAME_DNR_RULE_ID,
});
})();