<?php
require_once __DIR__.'/../includes/functions.php';
mj_automation_ensure_schema();
foreach(['company_profile_score','company_profile_reminder','company_verification_expiry','company_unanswered_leads'] as $k){
    $s = one('SELECT * FROM mj_automation_settings WHERE automation_key=?', [$k]);
    if ($s) { mj_automation_run_one($s, isset($_GET['force'])); }
}
echo 'Company automation completed.';
