def _add_vault_hashes_to_dictionary(self, cef_artifact, vault_id):
    (success, message, vault_info) = phantom_rules.vault_info(vault_id=vault_id)
    if (not vault_info):
        return (phantom.APP_ERROR, 'Vault ID not found')
    try:
        metadata = vault_info[0].get('metadata')
    except Exception:
        return (phantom.APP_ERROR, PROC_EMAIL_FAILED_VAULT_CONT_DATA)
    try:
        cef_artifact['fileHashSha256'] = metadata['sha256']
    except Exception:
        pass
    try:
        cef_artifact['fileHashMd5'] = metadata['md5']
    except Exception:
        pass
    try:
        cef_artifact['fileHashSha1'] = metadata['sha1']
    except Exception:
        pass
    return (phantom.APP_SUCCESS, PROC_EMAIL_MAPPED_HASH_VAL)
def _add_vault_hashes_to_dictionary(self, cef_artifact, vault_id):
    (success, message, vault_info) = phantom_rules.vault_info(vault_id=vault_id)
    if (not vault_info):
        return (phantom.APP_ERROR, 'Vault ID not found')
    try:
        metadata = vault_info[0].get('metadata')
    except Exception:
        return (phantom.APP_ERROR, PROC_EMAIL_FAILED_VAULT_CONT_DATA)
    try:
        cef_artifact['fileHashSha256'] = metadata['sha256']
    except Exception:
        pass
    try:
        cef_artifact['fileHashMd5'] = metadata['md5']
    except Exception:
        pass
    try:
        cef_artifact['fileHashSha1'] = metadata['sha1']
    except Exception:
        pass
    return (phantom.APP_SUCCESS, PROC_EMAIL_MAPPED_HASH_VAL)