diff --git a/smardigo/backup.zip b/smardigo/backup.zip new file mode 100644 index 0000000..68b6f96 Binary files /dev/null and b/smardigo/backup.zip differ diff --git a/smardigo/backup/app/process.json b/smardigo/backup/app/process.json new file mode 100644 index 0000000..f78330b --- /dev/null +++ b/smardigo/backup/app/process.json @@ -0,0 +1,15 @@ +{ + "name" : "Backups", + "configKey" : "process", + "configType" : "process", + "description" : "Verwaltung von Backups", + "imageUrl" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAGAAAAABAAAAYAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABaNsN0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAACZmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aW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A9gRskBDp2cH/10a7zSCXxvrYETz6aAohdx1fL6KbS5KCO7LdZIziGG8Hy6N5va+AE5Y6V2HV8ry4zK8sm1/j0se01IEwYFgSrwsOtL5f+LxoxGoiZ2BVDvldH80vjm2JSpN2db4ndSW5iI0Z+ETPBq5hPTU19+UxamhTaMIpV7rwfpdR29325sBmJlZgVAu21uW330GtzxErwGvb6zj354qTmyJo27slXZ5sqgS8V3isvT2vluKYDFQ730uvz/wuU0tGQFNgD5AAAAABJRU5ErkJggg==", + "menuItems" : [ { + "name" : "Hauptprozesse", + "tabName" : "Hauptprozesse", + "logoId" : "search", + "configType" : "process-search", + "processDefinitionKey" : "primary-process", + "processDefinitionKeys" : [ "primary-process" ] + } ] +} \ No newline at end of file diff --git a/smardigo/backup/datasource/awx-job-templates-plain.json b/smardigo/backup/datasource/awx-job-templates-plain.json new file mode 100644 index 0000000..b9a07b5 --- /dev/null +++ b/smardigo/backup/datasource/awx-job-templates-plain.json @@ -0,0 +1,19 @@ +{ + "name" : "awx-job-templates-plain", + "restApi" : true, + "configKey" : "awx-job-templates-plain", + "payloadType" : "REST", + "config" : [ { + "name" : "connection", + "type" : "CONNECTION", + "value" : "awx" + }, { + "name" : "resource", + "type" : "STRING", + "value" : "api/v2/job_templates?search=${name}" + }, { + "name" : "sqlStatement", + "type" : "STRING", + "value" : "SELECT results FROM default_table" + } ] +} \ No newline at end of file diff --git a/smardigo/backup/datasource/awx-job-templates.json b/smardigo/backup/datasource/awx-job-templates.json new file mode 100644 index 0000000..e0b9d21 --- /dev/null +++ b/smardigo/backup/datasource/awx-job-templates.json @@ -0,0 +1,15 @@ +{ + "name" : "awx-job-templates", + "restApi" : true, + "configKey" : "awx-job-templates", + "payloadType" : "POST_PROCESSING", + "config" : [ { + "name" : "datasource_key", + "type" : "STRING", + "value" : "awx-job-templates-plain" + }, { + "name" : "groovy_script", + "type" : "STRING", + "value" : "def result = []\ndata.each{templates ->\n templates.results.each{ template ->\n if (parameters['name'] == template.name) {\n result.add([id: template.id, name: template.name])\n }\n }\n}\nresult" + } ] +} \ No newline at end of file diff --git a/smardigo/backup/form/attachments.json b/smardigo/backup/form/attachments.json new file mode 100644 index 0000000..4d981bf --- /dev/null +++ b/smardigo/backup/form/attachments.json @@ -0,0 +1,87 @@ +{ + "name" : "Anhänge", + "configKey" : "attachments", + "page" : 0, + "components" : [ { + "dropzoneConfig" : { + "maxFilesize" : "10", + "dictDefaultMessage" : "Dateien zum Anhängen/Hochladen ablegen oder durchsuchen", + "dictHelpText" : "Maximale Dateigröße: {{config.maxFilesize}}MB. Akzeptierte Dateitypen: Office-Dokumente und Bilder.", + "acceptedFiles" : ".pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, image/*, .csv, .xml, .txt", + "paramName" : "content", + "url" : "api/scope/{{context.scopeId}}/process/{{context.processId}}/attachment" + }, + "columns" : [ { + "name" : "Name", + "property" : "name", + "value" : "", + "type" : "filename", + "width" : "20%" + }, { + "name" : "Erstellt am", + "property" : "creationDate", + "type" : "date", + "value" : "{{moment(creationDate).format('DD.MM.YYYY HH:mm:ss')}}", + "width" : "80%" + } ], + "label" : "Anlagen", + "deleteUrl" : "api/scope/{{context.scopeId}}/process/{{context.processId}}/attachment/{{attachmentId}}", + "downloadUrl" : "api/scope/{{context.scopeId}}/process/{{context.processId}}/attachment-data/{{attachmentId}}", + "resolveUserDataURL" : "api/scope/{{context.scopeId}}/process/{{context.processId}}/users?id.equals={{userId}}", + "csrfCookiePath" : "XSRF-TOKEN", + "taggingExpression" : "", + "button" : { + "iconOnly" : true, + "removeVisibleWhen" : "return false;", + "showVersion" : false, + "showOnlyCurrentVersion" : false, + "showCheckboxCurrentVersion" : false + }, + "mask" : false, + "tableView" : true, + "type" : "attachments", + "input" : true, + "key" : "anlagen", + "components" : [ ], + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : true, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "id" : "e9zp29e" + } ] +} \ No newline at end of file diff --git a/smardigo/backup/form/body.json b/smardigo/backup/form/body.json new file mode 100644 index 0000000..1d91653 --- /dev/null +++ b/smardigo/backup/form/body.json @@ -0,0 +1,509 @@ +{ + "name" : "Inhalt", + "configKey" : "body", + "page" : 0, + "components" : [ { + "input" : false, + "tableView" : false, + "columns" : [ { + "components" : [ { + "labelPosition" : "left-right", + "label" : "Ersteller", + "mask" : false, + "disabled" : true, + "tableView" : true, + "type" : "select", + "input" : true, + "key" : "creation_user_id", + "validate" : { + "unique" : false, + "customMessage" : "", + "json" : "", + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "data" : { + "headers" : [ { + "key" : "", + "value" : "" + } ], + "url" : "api/v1/scopes/{{context.scopeId}}/processes/{{context.processId}}/users?id.equals={{data.creation_user_id}}", + "values" : [ ], + "json" : "", + "resource" : "", + "custom" : "" + }, + "properties" : { }, + "tags" : [ ], + "defaultValue" : "", + "dataSrc" : "url", + "lazyLoad" : false, + "valueProperty" : "id", + "selectValues" : "", + "disableLimit" : false, + "template" : "{{[item.firstName, item.lastName].filter(Boolean).join(' ')}}", + "searchEnabled" : false, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "limit" : 100, + "filter" : "", + "searchField" : "", + "minSearch" : 0, + "readOnlyValue" : false, + "authenticate" : false, + "selectFields" : "", + "customSearchCriteria" : "", + "searchThreshold" : 0.3, + "fuseOptions" : { }, + "customOptions" : { }, + "infiniteScroll" : false, + "clearValueIfNotInItems" : false, + "clientSideFilter" : "", + "id" : "evydmbo" + } ], + "width" : 4, + "offset" : 0, + "push" : 0, + "pull" : 0, + "type" : "column", + "input" : false, + "key" : "column1", + "tableView" : true, + "label" : "", + "hideOnChildrenHidden" : false, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "id" : "e9u3jbf" + }, { + "components" : [ { + "labelPosition" : "left-right", + "label" : "Erstellt am", + "format" : "dd.MM.yyyy", + "mask" : false, + "tableView" : true, + "type" : "datetime", + "input" : true, + "key" : "creation_date", + "suffix" : true, + "widget" : { + "type" : "calendar", + "displayInTimezone" : "viewer", + "language" : "en", + "useLocaleSettings" : false, + "allowInput" : true, + "mode" : "single", + "enableTime" : true, + "noCalendar" : false, + "format" : "dd.MM.yyyy", + "defaultDate" : "", + "hourIncrement" : 1, + "minuteIncrement" : 1, + "time_24hr" : false, + "minDate" : null, + "maxDate" : null, + "icons" : "fontawesome", + "i18n" : { + "lng" : "en", + "resources" : { + "de" : { + "translation" : { + "complete" : "Eingabe vollständig", + "error" : "Bitte beheben Sie vor dem Abschicken folgende Fehler.", + "required" : "{{field}} ist ein Pflichtfeld", + "pattern" : "{{field}} entspricht nicht dem Muster {{pattern}}", + "minLength" : "{{field}} muss länger als {{length}} Zeichen sein.", + "maxLength" : "{{field}} muss kürzer als {{length}} Zeichen sein.", + "min" : "{{field}} darf nicht kleiner als {{min}} sein.", + "max" : "{{field}} darf nicht größer als {{max}} sein.", + "invalid_email" : "{{field}} ist keine valide E-Mail-Adresse.", + "invalid_regex" : "{{field}} entspricht nicht dem Muster {{regex}}.", + "invalid_date" : "{{field}} ist kein valides Datum.", + "mask" : "{{field}} entspricht nicht der Maske.", + "stripe" : "{{stripe}}", + "month" : "Monat", + "day" : "Tag", + "year" : "Jahr", + "january" : "Januar", + "february" : "Februar", + "march" : "März", + "april" : "April", + "may" : "Mai", + "june" : "Juni", + "july" : "Juli", + "august" : "August", + "september" : "September", + "october" : "Oktober", + "november" : "November", + "december" : "Dezember", + "next" : "Weiter", + "previous" : "Zurück", + "cancel" : "Abbrechen", + "submit" : "Vorgang starten", + "dualMultiselect_filterPlaceholder" : "Tippen um zu filtern.", + "dualMultiselect_labelAll" : "Alle Werte", + "dualMultiselect_labelSelected" : "Ausgewählte Werte", + "dualMultiselect_buttonSelectAll" : "Alle auswählen", + "dualMultiselect_buttonDeselectAll" : "Alle abwählen", + "listSelection_buttonSelectAriaLabel" : "Eintrag Auswählen", + "mapView_zoomInButton" : "Vergrößern", + "mapView_zoomOutButton" : "Verkleinern", + "selectComponent_searchPlaceholder" : "Tippe um zu Suchen...", + "selectComponent_noChoicesText" : "Keine Elemente zur Auswahl", + "selectComponent_noResultsText" : "Keine Ergebnisse gefunden" + } + } + } + } + }, + "defaultValue" : "", + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "multiple" : false, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "useLocaleSettings" : false, + "allowInput" : true, + "enableDate" : true, + "enableTime" : true, + "defaultDate" : "", + "displayInTimezone" : "viewer", + "timezone" : "", + "datepickerMode" : "day", + "datePicker" : { + "showWeeks" : true, + "startingDay" : 0, + "initDate" : "", + "minMode" : "day", + "maxMode" : "year", + "yearRows" : 4, + "yearColumns" : 5, + "minDate" : null, + "maxDate" : null + }, + "timePicker" : { + "hourStep" : 1, + "minuteStep" : 1, + "showMeridian" : true, + "readonlyInput" : false, + "mousewheel" : true, + "arrowkeys" : true + }, + "id" : "ef2amw" + } ], + "width" : 4, + "offset" : 0, + "push" : 0, + "pull" : 0, + "type" : "column", + "input" : false, + "key" : "column2", + "tableView" : true, + "label" : "", + "hideOnChildrenHidden" : false, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "id" : "efau92d" + }, { + "components" : [ { + "input" : true, + "tableView" : false, + "label" : "Status", + "key" : "vorgang_status_text", + "defaultValue" : "", + "persistent" : false, + "clearOnHide" : false, + "conditional" : { + "show" : "", + "when" : null, + "eq" : "" + }, + "type" : "textfield", + "labelPosition" : "left-right", + "tags" : [ ], + "properties" : { + "" : "" + }, + "labelWidth" : 40, + "disabled" : true, + "lockKey" : true, + "widget" : null, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "protected" : false, + "unique" : false, + "hidden" : false, + "dataGridLabel" : false, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false, + "minLength" : "", + "maxLength" : "", + "minWords" : "", + "maxWords" : "", + "pattern" : "" + }, + "mask" : false, + "inputType" : "text", + "inputMask" : "", + "id" : "ea7hs5" + } ], + "width" : 4, + "offset" : 0, + "push" : 0, + "pull" : 0, + "type" : "column", + "input" : false, + "key" : "column3", + "tableView" : true, + "label" : "", + "hideOnChildrenHidden" : false, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "id" : "ez9z05q" + } ], + "type" : "columns", + "tags" : [ ], + "conditional" : { + "show" : "", + "when" : null, + "eq" : "" + }, + "properties" : { + "" : "" + }, + "label" : "Columns", + "key" : "columns", + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : false, + "hidden" : false, + "clearOnHide" : false, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "autoAdjust" : false, + "hideOnChildrenHidden" : false, + "id" : "eqtnze" + } ] +} \ No newline at end of file diff --git a/smardigo/backup/form/header.json b/smardigo/backup/form/header.json new file mode 100644 index 0000000..ba26d64 --- /dev/null +++ b/smardigo/backup/form/header.json @@ -0,0 +1,509 @@ +{ + "name" : "Kopfzeile", + "configKey" : "header", + "page" : 0, + "components" : [ { + "input" : false, + "tableView" : false, + "columns" : [ { + "components" : [ { + "labelPosition" : "left-right", + "label" : "Ersteller", + "mask" : false, + "disabled" : true, + "tableView" : true, + "type" : "select", + "input" : true, + "key" : "creation_user_id", + "validate" : { + "unique" : false, + "customMessage" : "", + "json" : "", + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "data" : { + "headers" : [ { + "key" : "", + "value" : "" + } ], + "url" : "api/v1/scopes/{{context.scopeId}}/processes/{{context.processId}}/users?id.equals={{data.creation_user_id}}", + "values" : [ ], + "json" : "", + "resource" : "", + "custom" : "" + }, + "properties" : { }, + "tags" : [ ], + "defaultValue" : "", + "dataSrc" : "url", + "lazyLoad" : false, + "valueProperty" : "id", + "selectValues" : "", + "disableLimit" : false, + "template" : "{{[item.firstName, item.lastName].filter(Boolean).join(' ')}}", + "searchEnabled" : false, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "limit" : 100, + "filter" : "", + "searchField" : "", + "minSearch" : 0, + "readOnlyValue" : false, + "authenticate" : false, + "selectFields" : "", + "customSearchCriteria" : "", + "searchThreshold" : 0.3, + "fuseOptions" : { }, + "customOptions" : { }, + "infiniteScroll" : false, + "clearValueIfNotInItems" : false, + "clientSideFilter" : "", + "id" : "evydmbo" + } ], + "width" : 4, + "offset" : 0, + "push" : 0, + "pull" : 0, + "type" : "column", + "input" : false, + "key" : "column1", + "tableView" : true, + "label" : "", + "hideOnChildrenHidden" : false, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "id" : "e9u3jbf" + }, { + "components" : [ { + "labelPosition" : "left-right", + "label" : "Erstellt am", + "format" : "dd.MM.yyyy", + "mask" : false, + "tableView" : true, + "type" : "datetime", + "input" : true, + "key" : "creation_date", + "suffix" : true, + "widget" : { + "type" : "calendar", + "displayInTimezone" : "viewer", + "language" : "en", + "useLocaleSettings" : false, + "allowInput" : true, + "mode" : "single", + "enableTime" : true, + "noCalendar" : false, + "format" : "dd.MM.yyyy", + "defaultDate" : "", + "hourIncrement" : 1, + "minuteIncrement" : 1, + "time_24hr" : false, + "minDate" : null, + "maxDate" : null, + "icons" : "fontawesome", + "i18n" : { + "lng" : "en", + "resources" : { + "de" : { + "translation" : { + "complete" : "Eingabe vollständig", + "error" : "Bitte beheben Sie vor dem Abschicken folgende Fehler.", + "required" : "{{field}} ist ein Pflichtfeld", + "pattern" : "{{field}} entspricht nicht dem Muster {{pattern}}", + "minLength" : "{{field}} muss länger als {{length}} Zeichen sein.", + "maxLength" : "{{field}} muss kürzer als {{length}} Zeichen sein.", + "min" : "{{field}} darf nicht kleiner als {{min}} sein.", + "max" : "{{field}} darf nicht größer als {{max}} sein.", + "invalid_email" : "{{field}} ist keine valide E-Mail-Adresse.", + "invalid_regex" : "{{field}} entspricht nicht dem Muster {{regex}}.", + "invalid_date" : "{{field}} ist kein valides Datum.", + "mask" : "{{field}} entspricht nicht der Maske.", + "stripe" : "{{stripe}}", + "month" : "Monat", + "day" : "Tag", + "year" : "Jahr", + "january" : "Januar", + "february" : "Februar", + "march" : "März", + "april" : "April", + "may" : "Mai", + "june" : "Juni", + "july" : "Juli", + "august" : "August", + "september" : "September", + "october" : "Oktober", + "november" : "November", + "december" : "Dezember", + "next" : "Weiter", + "previous" : "Zurück", + "cancel" : "Abbrechen", + "submit" : "Vorgang starten", + "dualMultiselect_filterPlaceholder" : "Tippen um zu filtern.", + "dualMultiselect_labelAll" : "Alle Werte", + "dualMultiselect_labelSelected" : "Ausgewählte Werte", + "dualMultiselect_buttonSelectAll" : "Alle auswählen", + "dualMultiselect_buttonDeselectAll" : "Alle abwählen", + "listSelection_buttonSelectAriaLabel" : "Eintrag Auswählen", + "mapView_zoomInButton" : "Vergrößern", + "mapView_zoomOutButton" : "Verkleinern", + "selectComponent_searchPlaceholder" : "Tippe um zu Suchen...", + "selectComponent_noChoicesText" : "Keine Elemente zur Auswahl", + "selectComponent_noResultsText" : "Keine Ergebnisse gefunden" + } + } + } + } + }, + "defaultValue" : "", + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "multiple" : false, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "useLocaleSettings" : false, + "allowInput" : true, + "enableDate" : true, + "enableTime" : true, + "defaultDate" : "", + "displayInTimezone" : "viewer", + "timezone" : "", + "datepickerMode" : "day", + "datePicker" : { + "showWeeks" : true, + "startingDay" : 0, + "initDate" : "", + "minMode" : "day", + "maxMode" : "year", + "yearRows" : 4, + "yearColumns" : 5, + "minDate" : null, + "maxDate" : null + }, + "timePicker" : { + "hourStep" : 1, + "minuteStep" : 1, + "showMeridian" : true, + "readonlyInput" : false, + "mousewheel" : true, + "arrowkeys" : true + }, + "id" : "ef2amw" + } ], + "width" : 4, + "offset" : 0, + "push" : 0, + "pull" : 0, + "type" : "column", + "input" : false, + "key" : "column2", + "tableView" : true, + "label" : "", + "hideOnChildrenHidden" : false, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "id" : "efau92d" + }, { + "components" : [ { + "input" : true, + "tableView" : false, + "label" : "Status", + "key" : "vorgang_status_text", + "defaultValue" : "", + "persistent" : false, + "clearOnHide" : false, + "conditional" : { + "show" : "", + "when" : null, + "eq" : "" + }, + "type" : "textfield", + "labelPosition" : "left-right", + "tags" : [ ], + "properties" : { + "" : "" + }, + "labelWidth" : 40, + "disabled" : true, + "lockKey" : true, + "widget" : null, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "protected" : false, + "unique" : false, + "hidden" : false, + "dataGridLabel" : false, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false, + "minLength" : "", + "maxLength" : "", + "minWords" : "", + "maxWords" : "", + "pattern" : "" + }, + "mask" : false, + "inputType" : "text", + "inputMask" : "", + "id" : "ea7hs5" + } ], + "width" : 4, + "offset" : 0, + "push" : 0, + "pull" : 0, + "type" : "column", + "input" : false, + "key" : "column3", + "tableView" : true, + "label" : "", + "hideOnChildrenHidden" : false, + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : true, + "hidden" : false, + "clearOnHide" : true, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "conditional" : { + "show" : null, + "when" : null, + "eq" : "" + }, + "id" : "ez9z05q" + } ], + "type" : "columns", + "tags" : [ ], + "conditional" : { + "show" : "", + "when" : null, + "eq" : "" + }, + "properties" : { + "" : "" + }, + "label" : "Columns", + "key" : "columns", + "placeholder" : "", + "prefix" : "", + "customClass" : "", + "suffix" : "", + "multiple" : false, + "defaultValue" : null, + "protected" : false, + "unique" : false, + "persistent" : false, + "hidden" : false, + "clearOnHide" : false, + "dataGridLabel" : false, + "labelPosition" : "top", + "labelWidth" : 30, + "labelMargin" : 3, + "description" : "", + "errorLabel" : "", + "tooltip" : "", + "hideLabel" : false, + "tabindex" : "", + "disabled" : false, + "autofocus" : false, + "dbIndex" : false, + "customDefaultValue" : "", + "calculateValue" : "", + "allowCalculateOverride" : false, + "widget" : null, + "refreshOn" : "", + "clearOnRefresh" : false, + "validateOn" : "change", + "validate" : { + "required" : false, + "custom" : "", + "customPrivate" : false + }, + "autoAdjust" : false, + "hideOnChildrenHidden" : false, + "id" : "eqtnze" + } ] +} \ No newline at end of file diff --git a/smardigo/backup/layout/primary-process.json b/smardigo/backup/layout/primary-process.json new file mode 100644 index 0000000..222a211 --- /dev/null +++ b/smardigo/backup/layout/primary-process.json @@ -0,0 +1,74 @@ +{ + "name" : "Hauptprozess", + "configKey" : "primary-process", + "tabExpression" : "Vorgang {{ data.process_instance_id }}", + "readonlyExpression" : "data.vorgang_status > 10", + "components" : [ { + "type" : "columns", + "key" : "dossier", + "columns" : [ { + "components" : [ { + "type" : "form", + "key" : "header", + "readonlyExpression" : "true" + }, { + "type" : "html", + "content" : "
" + }, { + "type" : "columns", + "key" : "first-column", + "columns" : [ { + "components" : [ { + "type" : "page", + "key" : "dossier-page", + "toc" : "left", + "sections" : [ { + "type" : "section", + "key" : "body", + "title" : "Inhalt", + "components" : [ { + "type" : "form", + "key" : "body" + } ] + }, { + "type" : "section", + "key" : "dossier-attachments", + "title" : "Anhänge", + "components" : [ { + "type" : "form", + "key" : "attachments" + } ] + }, { + "type" : "section", + "key" : "dossier-comments", + "title" : "Kommentare", + "components" : [ { + "type" : "comments", + "key" : "comments" + } ] + }, { + "type" : "section", + "key" : "dossier-history", + "title" : "Protokoll", + "components" : [ { + "type" : "history", + "key" : "history" + } ] + } ] + } ], + "width" : "9" + }, { + "components" : [ { + "type" : "help-text", + "key" : "help-text" + }, { + "type" : "action-list", + "key" : "action-list" + } ], + "width" : "350px" + } ] + } ], + "width" : "12" + } ] + } ] +} \ No newline at end of file diff --git a/smardigo/backup/meta.info b/smardigo/backup/meta.info new file mode 100644 index 0000000..dcb61bb --- /dev/null +++ b/smardigo/backup/meta.info @@ -0,0 +1 @@ +scopeId=backup \ No newline at end of file diff --git a/smardigo/backup/policy/policy.json b/smardigo/backup/policy/policy.json new file mode 100644 index 0000000..643c994 --- /dev/null +++ b/smardigo/backup/policy/policy.json @@ -0,0 +1,20 @@ +{ + "configKey" : "policy", + "configType" : "policy", + "name" : "Policies", + "policies" : [ { + "id" : "allow_delete_process_all", + "name" : "Processes delete all", + "effect" : "allow", + "actions" : [ "delete" ], + "resources" : [ "processes:simple-connect" ], + "conditions": [ "${vorgang_status_text == 'Neu'}" ] + }, { + "id" : "allow_read_write_variables_all", + "name" : "Variables read/write all", + "effect" : "allow", + "actions" : [ "read", "write" ], + "resources" : [ "variables:simple-connect:*" ], + "conditions" : [ ] + } ] +} \ No newline at end of file diff --git a/smardigo/backup/process-search/primary-process-fallback.json b/smardigo/backup/process-search/primary-process-fallback.json new file mode 100644 index 0000000..4b8e09b --- /dev/null +++ b/smardigo/backup/process-search/primary-process-fallback.json @@ -0,0 +1,7 @@ +{ + "name" : "Hauptprozesse Fallback", + "configKey" : "primary-process-fallback", + "columns" : [ ], + "sorts" : [ ], + "filters" : [ ] +} \ No newline at end of file diff --git a/smardigo/backup/process-search/primary-process.json b/smardigo/backup/process-search/primary-process.json new file mode 100644 index 0000000..16a3890 --- /dev/null +++ b/smardigo/backup/process-search/primary-process.json @@ -0,0 +1,47 @@ +{ + "name" : "Hauptprozesse", + "configKey" : "primary-process", + "columns" : [ { + "key" : "id", + "name" : "ID", + "width" : 50, + "hidden" : true + }, { + "key" : "process_definition_key", + "name" : "Process", + "width" : 100, + "hidden" : true + }, { + "key" : "creation_date", + "name" : "Erstelldatum", + "width" : 100 + }, { + "key" : "creation_user_id", + "name" : "Ersteller", + "width" : 150 + }, { + "key" : "vorgang_status_text", + "name" : "Status", + "width" : 100 + }, { + "key" : "candidateGroups", + "name" : "Gruppen", + "width" : 100, + "hidden" : true + } ], + "filters" : [ { + "name" : "Ersteller", + "key" : "creation_user_id", + "defaultOption" : { + "key" : "default", + "name" : "Alle" + } + }, { + "name" : "Status", + "key" : "vorgang_status_text", + "defaultOption" : { + "key" : "default", + "name" : "Alle" + } + } ] +} \ No newline at end of file diff --git a/smardigo/backup/process-variable-declaration/primary-process.json b/smardigo/backup/process-variable-declaration/primary-process.json new file mode 100644 index 0000000..ce612f4 --- /dev/null +++ b/smardigo/backup/process-variable-declaration/primary-process.json @@ -0,0 +1,23 @@ +{ + "name" : "Hauptprozesse", + "configKey" : "primary-process", + "configType" : "process-variable-declaration", + "variableDeclarations" : { + "creation_date" : { + "type" : "date", + "classification" : "PRIVATE" + }, + "creation_user_id" : { + "type" : "userId", + "classification" : "PRIVATE" + }, + "vorgang_status" : { + "type" : "string", + "classification" : "PRIVATE" + }, + "vorgang_status_text" : { + "type" : "string", + "classification" : "PRIVATE" + } + } +} \ No newline at end of file diff --git a/smardigo/backup/process/primary-process.bpmn b/smardigo/backup/process/primary-process.bpmn new file mode 100644 index 0000000..4bc8fbb --- /dev/null +++ b/smardigo/backup/process/primary-process.bpmn @@ -0,0 +1,305 @@ + + + + + + + + + + + + Flow_1a8vxf0 + + + + + Flow_0ufs5lg + + + + + ${999} + done + + + Flow_0htljqr + Flow_0ufs5lg + + + + + + + + + Flow_0oc7f69 + Flow_0htljqr + + + + + + + ${10} + new + + + Flow_1vjr74e + Flow_0oc7f69 + + + + + + ${0} + ${1} + + + ${envStage} + + ${1} + connect + + + + + Flow_1a8vxf0 + Flow_1vjr74e + + + + + Flow_1o2xasq + + + Flow_1o2xasq + Flow_02t94f3 + + + + + + + + + Flow_02t94f3 + Flow_037h9ne + + + + + + datasources.query('awx-job-templates').processScope(contextScopeId, contextProcessId).parameters([name:smardigoManagementAction]).list()[0]['id']; + + + + Flow_037h9ne + Flow_0itcfsg + + + + + /api/v2/job_templates/${job_template_id}/launch/ + + + + + + Flow_0itcfsg + Flow_0a10mmp + + + Flow_042nfag + Flow_1wct7o1 + + + + Flow_1wct7o1 + Flow_0cnh8iv + + + Flow_0cnh8iv + + + + + + + + ${extra_vars} + + + + + Flow_0a10mmp + Flow_042nfag + + + + + + + + + + + + + Flow_1nplu24 + + + + + + + + + + Flow_1nplu24 + Flow_1tye2db + + + Flow_1tye2db + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/smardigo/backup/roles/roles.json b/smardigo/backup/roles/roles.json new file mode 100644 index 0000000..cd68e48 --- /dev/null +++ b/smardigo/backup/roles/roles.json @@ -0,0 +1,11 @@ +{ + "name" : "roles", + "configKey" : "roles", + "roles" : [ { + "id" : "maintainer", + "name" : "Maintainer" + }, { + "id" : "administrator", + "name" : "Administrator" + } ] +} \ No newline at end of file diff --git a/smardigo/backup/script/ansible-end.groovy b/smardigo/backup/script/ansible-end.groovy new file mode 100644 index 0000000..e08ddf8 --- /dev/null +++ b/smardigo/backup/script/ansible-end.groovy @@ -0,0 +1 @@ +processes.byId(contextScopeId, contextProcessId).createComment(comment + ' beendet') \ No newline at end of file diff --git a/smardigo/backup/script/ansible-start.groovy b/smardigo/backup/script/ansible-start.groovy new file mode 100644 index 0000000..f7de0d5 --- /dev/null +++ b/smardigo/backup/script/ansible-start.groovy @@ -0,0 +1,29 @@ +def cluster_features = ['connect'] + execution.getVariable('connect-features') + +def env = [ + process_instance_id: execution.getProcessInstanceId(), + scope_id: contextScopeId, + smardigo_management_action: smardigoManagementAction, + stage: cluster.stage, +] +if (binding.hasVariable('extraVariables')) { + env << extraVariables +} + +def filename = 'xvars-' + smardigoManagementAction + '-' + execution.getProcessInstanceId() + '.yml' +def ansibleCommand= 'ansible-playbook ' + smardigoManagementAction + '.yml --vault-password-file ~/vault-pass -e "@' + filename + '"' +def ansibleVariables= 'cat <> ' + filename + '\n' +ansibleVariables+= '---\n' +env.each { key, val -> + if (val instanceof List) { + ansibleVariables+= key + ':\n- \'' + val.join('\'\n- \'') + '\'\n' + } else { + ansibleVariables+= key + ': \'' + val + '\'\n' + } +} +ansibleVariables+= 'EOT' + +processes.byId(contextScopeId, contextProcessId).createComment(comment + ' gestartet') +processes.byId(contextScopeId, contextProcessId).createComment(ansibleVariables + '\n' + ansibleCommand) + +ansibleCommand \ No newline at end of file diff --git a/smardigo/backup/script/create-awx-paramaters.groovy b/smardigo/backup/script/create-awx-paramaters.groovy new file mode 100644 index 0000000..7f06c94 --- /dev/null +++ b/smardigo/backup/script/create-awx-paramaters.groovy @@ -0,0 +1,13 @@ +def cluster_features = ['connect'] + execution.getVariable('connect-features') + +def env = [ + process_instance_id: execution.getProcessInstanceId(), + scope_id: contextScopeId, + smardigo_management_action: smardigoManagementAction, + stage: cluster.stage, +] +if (binding.hasVariable('extraVariables')) { + env << extraVariables +} + +env \ No newline at end of file diff --git a/smardigo/backup/script/create-teams-message.groovy b/smardigo/backup/script/create-teams-message.groovy new file mode 100644 index 0000000..e21bbb1 --- /dev/null +++ b/smardigo/backup/script/create-teams-message.groovy @@ -0,0 +1,39 @@ +def smardigoUrl = "https://" + cluster.stage + "-management-01-connect.smardigo.digital/api/redirect/process/" + contextScopeId + "/dossier/simple-connect/" + contextProcessId +def smardigoMessageUrl = "https://" + cluster.stage + "-management-01-connect.smardigo.digital/api/v1/scopes/" + contextScopeId + "/processes/" + contextProcessId + "/messages" + +def message = [:] +message["@type"] = "MessageCard" +message["@context"] = "http://schema.org/extensions" +message["themeColor"] = "0076D7" +message["summary"] = "Neue Aufgabe: " + comment + +def section = [:] +section["activityTitle"] = activityTitle +section["activitySubtitle"] = activitySubtitle +section["activityImage"] = "https://smardigo.de/wp-content/uploads/2020/01/smardigo-min.png" +message.sections = [section] + +def potentialAction = [] + +def openInSmardigo = [:] +openInSmardigo["@type"] = "ViewAction" +openInSmardigo["@context"] = "http://schema.org" +openInSmardigo["name"] = "Vorgang öffnen" +openInSmardigo["target"] = [smardigoUrl] +potentialAction.add(openInSmardigo) + +if (vorgang_status < 30) { + def approveInSmardigo = [:] + approveInSmardigo["@type"] = "HttpPOST" + approveInSmardigo["name"] = "Server freigeben" + approveInSmardigo["target"] = smardigoMessageUrl + approveInSmardigo["body"] = "{\"message\":\"process-approved-" + contextProcessId + "\"}" + approveInSmardigo["headers"] = [ + [name:"Smardigo-User-Token",value:envSmardigoUserToken] + ] + potentialAction.add(approveInSmardigo) +} + +message.potentialAction = potentialAction + +message \ No newline at end of file diff --git a/smardigo/backup/script/initialize-connect-features.groovy b/smardigo/backup/script/initialize-connect-features.groovy new file mode 100644 index 0000000..cf66253 --- /dev/null +++ b/smardigo/backup/script/initialize-connect-features.groovy @@ -0,0 +1,10 @@ + +def parameters = [:] +parameters["default"] = "'1'" + +def defaultFeatures = datasources.query("connect-features").processScope(contextScopeId, contextScopeTag).parameters(parameters).list(); + +def features = [] +defaultFeatures.each { val -> features+= val.key } + +features \ No newline at end of file diff --git a/smardigo/package.sh b/smardigo/package.sh index 58ff7e8..bb5f93b 100644 --- a/smardigo/package.sh +++ b/smardigo/package.sh @@ -2,5 +2,9 @@ rm -f provisioning.zip zip -r provisioning.zip provisioning/ + rm -f template.zip zip -r template.zip template/ + +rm -f backup.zip +zip -r backup.zip backup/ diff --git a/smardigo/provisioning/script/create-password.groovy b/smardigo/provisioning/script/create-password.groovy new file mode 100644 index 0000000..49a9dcc --- /dev/null +++ b/smardigo/provisioning/script/create-password.groovy @@ -0,0 +1,20 @@ +def pool_length = 20; +def digits = [0..9].flatten() - [ 'O', '0', 'l', '1', 'I' ] +def upperCase = ['A'..'Z'].flatten() - [ 'O', '0', 'l', '1', 'I' ] +def lowerCase = ['a'..'z'].flatten() - [ 'O', '0', 'l', '1', 'I' ] +def special = ['~','!','#','%','&','(',')','{','}','[',']','-','+'] + +def pool = digits + upperCase + lowerCase + special + +Random rand = new Random(System.currentTimeMillis()); +def passChars = (0..pool_length - 1).collect { pool[rand.nextInt(pool.size)] }; +passChars[0] = special[rand.nextInt(special.size)] +passChars[pool_length - 0] = special[rand.nextInt(special.size)] +passChars[1] = upperCase[rand.nextInt(upperCase.size)] +passChars[pool_length - 1] = upperCase[rand.nextInt(upperCase.size)] +passChars[2] = lowerCase[rand.nextInt(lowerCase.size)] +passChars[pool_length - 2] = lowerCase[rand.nextInt(lowerCase.size)] + +def PASSWORD = passChars.join(); + +PASSWORD \ No newline at end of file