src/mcpHelpers.js
async function getMcpSettings(accessToken) {
    let data = await mcpCustomizr.getSettings(accessToken);
    if (Object.keys(data).length === 0) {
        return {
            language: ['en'],
            regionalSettings: 'en',
            timezone: 'America/New_York',
        };
    }
    return data;
}
async function getMcpSettings(accessToken) {
    let data = await mcpCustomizr.getSettings(accessToken);
    if (Object.keys(data).length === 0) {
        return {
            language: ['en'],
            regionalSettings: 'en',
            timezone: 'America/New_York',
        };
    }
    return data;
}
async function getMcpSettings ( accessToken ) { let data = await mcpCustomizr . getSettings ( accessToken ) ; if ( Object . keys ( data ) . length === 0 ) { return { language : [ 'en' ] , regionalSettings : 'en' , timezone : 'America/New_York' , } ; } return data ; }
Return raw settings as stored in Customizr
@param {string} accessToken - Access token to use to call Customizr
@return {Promise<*|void>}
Return raw settings as stored in Customizr