processResponse

To process an Interaction response, call the following, with the the corresponding Interaction path as parameters, as shown below:
processResponse(response: MXOInteractionResponse): Promise<MXOResult<null>>

Example of usage:

// Assumes an Interaction response was retrieved using the sendInteraction API

MedalliaMXO.processResponse(interactionResponse)
	.then(mxoResult => {
		if (mxoResult.value && mxoResult.value.apiName) {
			// error case
			console.error(mxoResult.value)
		} else {
			// success case
			console.log("The response is processed")
		}
	})
	.catch(error => {
                console.error(error)
	})
try {
	// Assumes an Interaction response was retrieved using the sendInteraction API

	const {value} = await MedalliaMXO.processResponse(interactionResponse)
	if (value && value.apiName) {
            	// error case
            	console.error(value)
        } else {
            	// success case
            	console.log("The response is processed")
        }
} catch (error) {
        console.error(error)
}