(domain)
return per_type_defaults
Get default properties for callcenter and usercases
Get default properties for callcenter and usercases
Get default properties for callcenter and usercases
def get_per_type_defaults(domain):
    """Get default properties for callcenter and usercases"""
    from corehq.apps.callcenter.utils import get_call_center_case_type_if_enabled

    per_type_defaults = {}
    if is_usercase_in_use(domain):
        per_type_defaults = {
            USERCASE_TYPE: _get_usercase_default_properties(domain)
        }

    callcenter_case_type = get_call_center_case_type_if_enabled(domain)
    if callcenter_case_type:
        per_type_defaults[callcenter_case_type] = _get_usercase_default_properties(domain)

    return per_type_defaults
def get_per_type_defaults ( domain ) : from corehq . apps . callcenter . utils import get_call_center_case_type_if_enabled per_type_defaults = { } if is_usercase_in_use ( domain ) : per_type_defaults = { USERCASE_TYPE : _get_usercase_default_properties ( domain ) } callcenter_case_type = get_call_center_case_type_if_enabled ( domain ) if callcenter_case_type : per_type_defaults [ callcenter_case_type ] = _get_usercase_default_properties ( domain ) return per_type_defaults