var UI_iordaz_Timeout = function() {
    return {
        init: function() {
            var o;
            $("body").append(""), $.iordaz_Timeout("#iordaz-timeout-dialog", ".modal-content button:last", {
                idleAfter: 1800,
                timeout: 3e4,
                pollingInterval: 5,
                keepAliveURL: "/keep-alive",
                serverResponseEquals: "OK",
                onTimeout: function() {
                    window.location = 'http://sipsweb.com.mx/crm-agro/inicio';
                },
                onIdle: function() {
                    $("#iordaz-timeout-dialog").modal("show"), o = $("#iordaz-timeout-counter"), $("#iordaz-timeout-dialog-keepalive").on("click", function() {
                        $("#iordaz-timeout-dialog").modal("hide")
                    })
                },
                onCountdown: function(e) {
                    o.html(e)
                }
            })
        }
    }
}();
jQuery(document).ready(function() {
    UI_iordaz_Timeout.init()
});