Retriveing email from GMAIL API and add to SMAX Service Request

We currently use CIT ro read email from GMAIL via Internet IMAP connector and insert that into SMAX. We have to use "Less secure apps' configuration on the malbox to be ble to access the email with user name and password.

Google will soon depricate "less secure apps' option and will break our CIT connector. 

This means that we will have to use a Google project and OATH2 to access the mailbox with token. CIT does not provide  a connector for this.

We are attempting to use SMAX integration Engine to connect to GMAIL endpoint (succesfully) using OATH2, BUT the body and attachments via the GMAIL API are only provided in base64 in theJSON payload

Looking to see if anyone has attempted this before or is there a method in the scenario rules to be able to decode the base64 data?