import { TinyMceOptions } from './constants/constants';
var Config = (function () {
    function Config(environment) {
        this.agGridConfig = {
            allowSharedView: false,
            defaultAdjustColumns: true,
            hasHyperlinkColumn: true,
            hyperlinkInNewTab: false,
            repeatViewVisibilityInListItem: true,
            separateViewsByVisibility: false,
            showSystemViewOnlyAsPublicView: true,
            showInFloatingBox: false,
            showFixedFilter: false,
            showFilterBox: false,
            showParametersViewBox: false,
            showUsedViewInList: true,
            showViewBox: false,
            showEmptyFieldsCheckbox: false,
            stringSeparatorAgGridFilter: '&&',
            suppressMenu: true,
            sortColumnByHeaderName: true
        };
        this.globalConfig = {
            isAutomaticSmallDevice: true,
            showPaginationBoundaryLinks: true,
            defaultLocale: 'fr-BE',
            uiBagdeDisplay: 'top',
            showHistory: true,
            showChat: true,
            redirectionIfNotAuthorized: false,
            displayWeekPicker: false,
            remoteTinyMceController: '/api/tiny-mce/',
            defaultUIFilesColumnsInfo: [
                {
                    columnName: "description",
                    columnVisibility: true,
                    width: 2
                },
                {
                    columnName: "fileTypeId",
                    columnVisibility: true,
                    width: 2
                },
                {
                    columnName: "createdTime",
                    columnVisibility: false,
                    width: 1
                }
            ],
            keyboardShortcutFwBox: false,
            remoteFileStorageServiceConfig: {
                controller: "/api/file/",
                secure: false,
                canDownloadFiles: true
            },
            uiSelectFocusSearchWhenOpen: true,
            uiInputInputMode: ''
        };
        this.defaultRichTextEditorOptions = {
            height: 400,
            menubar: false,
            content_style: TinyMceOptions.contentStyle,
            toolbar: TinyMceOptions.toolbar,
            powerpaste_allow_local_images: true,
            plugins: TinyMceOptions.plugins,
            automatic_uploads: true,
            file_picker_types: 'image',
            contextmenu: TinyMceOptions.contextMenu
        };
        this.enumerationTypeConfig = {
            useOrder: false,
            listByCategory: true,
            isUniqueCodeRequired: false,
            completeTranslatedFields: false,
            showTag: false,
        };
        this.menuConfig = {
            primaryColor: '#000000',
            maxLevelVerticalNavbar: 3,
        };
        this.containerConfig = {};
        this.communicationConfig = {
            showHistoryChatInButton: false,
            uINotificationAlertAutoCloseTimeInMilliseconds: 0,
            allowChatCountFetch: true,
        };
        if (environment == null) {
            return;
        }
        if (environment.remoteApiUrl) {
            this.globalConfig.remoteServiceName = environment.remoteApiUrl;
        }
        if (environment.auth) {
            this.authConfig = {
                clientId: environment.auth.clientId,
                domain: environment.auth.domain,
                originalDomain: environment.auth.originalDomain,
                audience: environment.auth.audience,
                callback_uri: environment.auth.callback_uri,
                logout_uri: environment.auth.logout_uri,
                clientSecret: environment.auth.clientSecret,
                cacheLocation: environment.auth.cacheLocation,
            };
        }
    }
    return Config;
}());
export { Config };

//# sourceMappingURL=config.js.map
