run = async (userConfig) => {
    const {
        _state,
        _config,
        _customEvents
    } = globalObj;

    const win = window;

    if (!win._ccRun) {
        win._ccRun = true;

        setConfig(userConfig);

        if (_state._botAgentDetected)
            return;

        retrieveState(userConfig);

        const consentIsValid = validConsent();

        //{{START: GUI}}
        const translationLoaded = await loadTranslationData();

        if (!translationLoaded)
            return false;

        generateHtml(miniAPI);

        if (_config.autoShow && !consentIsValid)
            show(true);
        //{{END: GUI}}

        if (consentIsValid) {
            manageExistingScripts();
            return fireEvent(_customEvents._onConsent);
        }

        if (_config.mode === OPT_OUT_MODE)
            manageExistingScripts(_state._defaultEnabledCategories);
    }
}
Will run once and only if modals do not exist.
@param {import("./global").UserConfig} userConfig