'use strict';
import { getDbSchema } from '../../../db/db-schema.js';
import { createDynamicSelect, dbWhere } from '../../../db/db-connection.js';
import { getTableColumn, runQuery } from '../../../db/drizzle-queries.js';
import { and, eq } from 'drizzle-orm';
import { schemaNames, columnNames } from '../../../db/constants/schema-names.js';

var __defProp=Object['defineProperty'],__name=(_0xbe5baa,_0x53fca5)=>__defProp(_0xbe5baa,'name',{'value':_0x53fca5,'configurable':!![]});async function getIntegrationHookUrls(_0x120ff1,_0x43c329){const _0x27020e=getDbSchema(),_0x1fc6a=_0x27020e[schemaNames['integrationSubscriptionSchema']],_0x35f17f=createDynamicSelect(_0x1fc6a,{'hookUrl':getTableColumn(_0x1fc6a,columnNames['hookUrl'])});dbWhere(_0x35f17f,and(eq(getTableColumn(_0x1fc6a,columnNames['resourceId']),_0x43c329),eq(getTableColumn(_0x1fc6a,columnNames['event']),_0x120ff1)));const _0x3c031e=await runQuery(_0x35f17f);return _0x3c031e['map'](_0x4f8855=>_0x4f8855['hookUrl']);}__name(getIntegrationHookUrls,'getIntegrationHookUrls');

export { getIntegrationHookUrls };
