'use strict';
import { setCoreCache, tryGetFromCoreCache } from '../../../../fd-toolbox/server/cachings/core-cache.js';
import { resourceMetaPlugins } from '../resources/resource-meta-plugin-constants.js';
import { columnNames } from '../../../db/constants/schema-names.js';

var __defProp=Object['defineProperty'],__name=(_0x46997a,_0x5c4540)=>__defProp(_0x46997a,'name',{'value':_0x5c4540,'configurable':!![]});const integrationConstants={'resourceMetaId':resourceMetaPlugins['resourceIdDecoratorName'],'event':columnNames['event']};const integrationCachePrefix='integrationCache_';async function setToIntegrationCache(_0x368a11,_0xf2f053,_0x1c9caa){await setCoreCache(getIntegrationCacheKey(_0x368a11,_0xf2f053),{'resourceMetaId':_0xf2f053,'id':_0x1c9caa});}__name(setToIntegrationCache,'setToIntegrationCache');async function getIntegrationCache(_0x4f0a47,_0x4b9a3b){const _0x108641=await tryGetFromCoreCache(getIntegrationCacheKey(_0x4f0a47,_0x4b9a3b));return _0x108641;}__name(getIntegrationCache,'getIntegrationCache');function getIntegrationCacheKey(_0x25d946,_0x264aea){return integrationCachePrefix+_0x25d946+_0x264aea;}__name(getIntegrationCacheKey,'getIntegrationCacheKey');

export { getIntegrationCache, integrationConstants, setToIntegrationCache };
