modules/utils.js
/**
 * Maps an api response to a scan status
 **/
Maps an api response to a scan status
Maps an api response to a scan status
function map_json_response_2_scan_status(json_response) {
    const scan_status = {
        url: json_response['threat_object']['url'],
        status: json_response['status'],
        score: json_response['score'],
        verdict: json_response['verdict'],
        report_id: json_response['report_id'],
        err_message: null
    };
    return scan_status;
}
function map_json_response_2_scan_status ( json_response ) { const scan_status = { url : json_response [ 'threat_object' ] [ 'url' ] , status : json_response [ 'status' ] , score : json_response [ 'score' ] , verdict : json_response [ 'verdict' ] , report_id : json_response [ 'report_id' ] , err_message : null } ; return scan_status ; }
Maps an api response to a scan status
Maps an api response to a scan status
// Build status object // Done