flexrep.inboundFilterGet() as element(flexrep.inboundFilter)?
This function gets any inbound filter that is contained in the database, or an empty sequence if none is configured.
const flexrep = require('/MarkLogic/flexrep'); flexrep.inboundFilterGet();
http://marklogic.com/xdmp/privileges/flexrep-admin