def main():
    try:
        handle_proxy()
        if (demisto.command() == 'test-module'):
            demisto.results(check_is_available())
        elif (demisto.command() == 'intezer-analyze-by-hash'):
            analyze_by_hash_command()
        elif (demisto.command() == 'intezer-analyze-by-file'):
            analyze_by_uploaded_file_command()
        elif (demisto.command() == 'intezer-get-latest-report'):
            get_latest_result_command()
        elif (demisto.command() == 'intezer-get-analysis-result'):
            check_analysis_status_and_get_results_command()
    except Exception as e:
        return_error(str(e))
def main():
    try:
        handle_proxy()
        if (demisto.command() == 'test-module'):
            demisto.results(check_is_available())
        elif (demisto.command() == 'intezer-analyze-by-hash'):
            analyze_by_hash_command()
        elif (demisto.command() == 'intezer-analyze-by-file'):
            analyze_by_uploaded_file_command()
        elif (demisto.command() == 'intezer-get-latest-report'):
            get_latest_result_command()
        elif (demisto.command() == 'intezer-get-analysis-result'):
            check_analysis_status_and_get_results_command()
    except Exception as e:
        return_error(str(e))