<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Config.aspx.cs" Inherits="eDocument.Server.Administrator.edoc_sak.Config" %>

        var edocSak = {
            ajaxConfig: {
                url: function () {
                    return '<%= ApiUrl %>';
                }
            },
            loginConfig: {
                failedUrl: function () {
                    return "../User/Login.aspx?url=../Sak";
                }
            },
            viewer: {
                settings: {
                    customerId: '<%= CustomerUsername %>'
                }
            },

            urlConfig: {
                installPath: '<%= InstallPath %>',
                adminPath: '<%= AdminPath %>',
                viewerJsUrl: '<%= ViewerJsUrl %>'
            },

            options: {
                hideBulk: true,
                showTemplateName: false,
                showRefId: false,
                showPeriod: false,
            }
        };

        if (typeof window !== 'undefined') {
            // Browser enviroment
            window.edocSak = edocSak;
        } else {
            // Node enviroment
            global.edocSak = edocSak;
        }