Name
global.VAGlobalUtil
Description
No description available
Script
var VAGlobalUtil = Class.create();
VAGlobalUtil.prototype = {
initialize: function() {
this.logger = new GlideChatbotLoggerSetupUtil("com.glide.cs").setup();
},
getDecompressedValue: function(str) {
try {
var byteArray = GlideStringUtil.base64DecodeAsBytes(str);
var decompressedStr = GlideCompressionUtil.expandToString(byteArray);
return decompressedStr;
} catch (err) {
this.logger.error("Error in decompressing the value " + err);
}
},
isAttachmentCopyEnabled: function(tableName) {
var tablesAsString = gs.getProperty("com.glide.interaction.attachments.copy");
var tablesArray = tablesAsString.split(",");
for (var idx = 0; idx < tablesArray.length; idx++) {
if (tablesArray[idx] == tableName) return true;
}
return false;
},
type: 'VAGlobalUtil'
};
Sys ID
558aa42a53b310101dccddeeff7b12f4