<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_apphook_configs(obj):
 """ Get apphook configs for an object obj :param obj: any model instance :return: list of apphook configs for given obj """

    keys = get_apphook_field_names(obj)
    return [getattr(obj, key) for key in keys] if keys else []