'use strict';
import { apiBadRequestError } from '../../../../../fd-toolbox/server/web/errors.js';
import { responseMessages } from '../../../../../fd-toolbox/server/web/response-messages.js';
import { apiOkResponse } from '../../../../meta/server/web/responses.js';
import { integrationConstants, getIntegrationCache } from '../../../../meta/server/integration-platforms/fd-integration-cache.js';
import { subscriptionEventStrings, subscriptionEventTypes } from '../../../../meta/server/integration-platforms/integration-events.js';

var __defProp=Object['defineProperty'],__name=(_0x17906e,_0x2850e2)=>__defProp(_0x17906e,'name',{'value':_0x2850e2,'configurable':!![]});async function integrationDeletedGetRoute(_0x12d297){const _0x5d6eaa=new URL(_0x12d297['url'])['searchParams']['get'](integrationConstants['resourceMetaId']);if(!_0x5d6eaa)throw apiBadRequestError(responseMessages['routingError']);const _0x4a0d4a=await getIntegrationCache(subscriptionEventStrings[subscriptionEventTypes['resourceRemoved']],_0x5d6eaa);if(_0x4a0d4a)return apiOkResponse([_0x4a0d4a]);else throw apiBadRequestError(responseMessages['routingError']);}__name(integrationDeletedGetRoute,'integrationDeletedGetRoute');

export { integrationDeletedGetRoute };
