(function (window, $) {
    'use strict';

    if (!$) {
        return;
    }

    var modules = window.noesiaSwaAdminModules || (window.noesiaSwaAdminModules = {});

    function boot() {
        return true;
    }

    function mount() {
        return boot();
    }

    function init() {
        return boot();
    }

    function onSectionOpen(target) {
        if (String(target || 'global-pulse') !== 'global-pulse') {
            return false;
        }

        return boot();
    }

    function onShow() {
        return onSectionOpen('global-pulse');
    }

    function show() {
        return onSectionOpen('global-pulse');
    }

    var api = $.extend({}, modules.globalPulse || modules['global-pulse'] || {}, {
        boot: boot,
        mount: mount,
        init: init,
        onSectionOpen: onSectionOpen,
        onShow: onShow,
        show: show
    });

    modules.globalPulse = api;
    modules['global-pulse'] = api;

    $(boot);
})(window, jQuery);
