const fs = require('fs');
const data = JSON.parse(fs.readFileSync('./dist/data/admin@mikrobil.com.json', 'utf8'));

if (data.hotspot_profiles) {
    console.log("Hotspot Profiles in JSON:");
    data.hotspot_profiles.forEach(p => {
        if (p.name.includes("member") || p.name.includes("kk") || p.name.includes("bg") || p.name.includes("lohot")) {
            console.log(p);
        }
    });
}
if (data.custom_profiles) {
    console.log("Custom Profiles in JSON:");
    data.custom_profiles.forEach(p => {
        if (p.name.includes("member") || p.name.includes("kk") || p.name.includes("bg") || p.name.includes("lohot")) {
            console.log(p);
        }
    });
}
