setOptOutConfiguration

To set or update the opt out configuration call the following:
setOptOutConfiguration(config: MXOOptOutConfiguration | null): Promise<MXOResult<null>>

Example of usage:

const config = {
	optOut : false,
	optInOptions : ['CITY_COUNTRY_DETECTION', 'INTERACTION_TRACKING', 'KEYCHAIN_TID_STORAGE']
}

MedalliaMXO.setOptOutConfiguration(config)
	.then(mxoResult => {
		if (mxoResult.value && mxoResult.value.apiName) {
			// error case
			console.error(mxoResult.value)
		} else {
			// success case
			console.log("Configuration is set")
		}
	})
	.catch(error => {
                console.error(error)
	})
try {
	const config : MXOOptOutConfiguration = {
		optOut : false,
		optInOptions : ['CITY_COUNTRY_DETECTION', 'INTERACTION_TRACKING', 'KEYCHAIN_TID_STORAGE']
	}

	const {value} = await MedalliaMXO.setOptOutConfiguration(config)
        if (value && value.apiName) {
            	// error case
            	console.error(value)
        } else {
            	// success case
            	console.log("Configuration is set")
        }
} catch (error) {
        console.error(error)
}