function syncMetaCampaigns(){var csrf=document.querySelector("meta[name=csrf-token]").content;fetch("api/bridge.php?target=meta",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-CSRF-Token":csrf},body:"target=meta&endpoint=sync_campaigns&_csrf="+csrf}).then(r=>r.json()).then(d=>void 0;}
function fetchInsights(campaignId){fetch("api/bridge.php?target=meta",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-CSRF-Token":document.querySelector("meta[name=csrf-token]").content},body:"target=meta&endpoint=insights&data[campaign_id]="+campaignId+"&_csrf="+document.querySelector("meta[name=csrf-token]").content}).then(r=>r.json()).then(d=>void 0;}
