<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
export const CodeLists = {
    <#if sys.getAllPSCodeLists()??>
    <#list sys.getAllPSCodeLists() as codelist>
    ${codelist.getCodeName()}: {
        name: '${codelist.getName()}',
        type: '${codelist.getCodeListType()}',
        emptytext: '${codelist.getEmptyText()}',
        <#if codelist.getCodeListType() == "DYNAMIC">
        <#if codelist.getPSDataEntity()??>
        de: 'codelist.getPSDataEntity().getCodeName()',
        </#if>
        <#if codelist.getTextPSDEField()??>
        fieldtext: '${codelist.getTextPSDEField().getCodeName()?lower_case}',
        </#if>
        <#if codelist.getValuePSDEField()??>
        fieldvalue: '${codelist.getValuePSDEField().getCodeName()?lower_case}',
        </#if>
        </#if>
        items: [ 
            <#if codelist.getAllPSCodeItems()??>
            <#list codelist.getAllPSCodeItems() as codeitem>
            {
                id: '${codeitem.getValue()}',
                label: '${codeitem.getText()}',
                text: '${codeitem.getText()}',
                value: '${codeitem.getValue()}'
            },
            </#list>
            </#if>
        ]
    },
    </#list>
    </#if>
};