in src/app/main/main.component.ts [196:212]
saveDataToSharedStorage() {
const dataValues = this.dataFormGroup.getRawValue();
// Encrypt the style values using the sql string.
const hashedStyleValues = CryptoJS.AES.encrypt(JSON.stringify(this.styles), this.jobWrappedSql + this.bytesProcessed);
const shareableData = {
sharingVersion: SHARING_VERSION,
projectID: dataValues.projectID,
jobID: this.jobID,
location: dataValues.location,
styles: hashedStyleValues.toString(),
creationTimestampMs: Date.now()
};
return this.storageService.storeShareableData(shareableData).then((written_doc_id) => {
this.generatedSharingId = written_doc_id;
});
}