def get_forced_elements(connection, model):
    """
    Returns the force include and force exclude ids of elements
    :param connection:
    :param model:

    :return:Included and excluded elements
    :rtype: dict(str,list)
    """
    c = connection
    try:
        mod_obj = getattr(c, c.normalize_model_name(model))
    except Exception:
        mod_obj = c.model(model)
    include_search_params = [('criteri_regulatori', '=', 'incloure')]
    include_ids = mod_obj.search(include_search_params, False, False, False,
        {'active_test': False})
    include_search_params = [('criteri_regulatori', '=', 'excloure')]
    exclude_ids = mod_obj.search(include_search_params, False, False, False,
        {'active_test': False})
    return {'include': include_ids, 'exclude': exclude_ids}
