var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var Unibase; (function (Unibase) { let Platform; (function (Platform) { let Automation; (function (Automation) { let Components; (function (Components) { class SendNotification extends Platform.Core.BaseComponent { constructor() { super(...arguments); this.RowIndex = 0; this.RuleProviderId = 0; this.AutomationMode = 0; this.RuleInstance = Unibase.Platform.Automation.Components.Rule.Instance(); } jsFiles() { var jsfiles = ["platform/automation/managers/rulemanager.js", "platform/automation/enums/automationmode.js", "platform/automation/components/conditions.js", "platform/automation/components/contactselection.js", "platform/automation/requests/ruleaction.js", "platform/automation/requests/rulecondition.js", "platform/forms/components/formviewer/formviewer.js", "libs/parsley/parsley.min.js", "libs/querybuilder/query-builder.min.js", "libs/querybuilder/query-builder.standalone.min.js", "libs/querybuilder/query-builder.standalone.js", "libs/querybuilder/sql-parser.min.js", "libs/notificationbuilder/notificationbuilder.js", "platform/apps/managers/stagemanager.js", "platform/automation/components/rulebuilder/rulebuilder.rule.js", "platform/automation/components/rulebuilder/notificationgroup.js", "platform/automation/managers/notificationgroupmanager.js" ]; return jsfiles; } cssFiles() { return []; } html(id, containerid) { let html = `
Create Notification
Advanced Options
Condition Details
Stage Event
Send To Details
`; return html; } load(id, containerid, callback) { return __awaiter(this, void 0, void 0, function* () { var instance = this; Unibase.Platform.Automation.Components.SendNotification.Instance().ActionId = instance.ActionId; Unibase.Platform.Automation.Components.SendNotification.Instance().RuleActionData = instance.RuleActionData; Unibase.Platform.Automation.Components.SendNotification.Instance().RowIndex = instance.RowIndex; Unibase.Platform.Automation.Components.SendNotification.Instance().AutomationMode = instance.AutomationMode; Unibase.Platform.Automation.Components.SendNotification.Instance().RuleProviderId = instance.RuleProviderId; Unibase.Platform.Automation.Components.SendNotification.Instance().ParentActionId = instance.ParentActionId; Unibase.Platform.Automation.Components.SendNotification.Instance().IsAutomationMode = instance.IsAutomationMode; yield Unibase.Platform.Automation.Components.NotificationGroup.Instance().LoadNotificationGroups(); if (instance.AutomationMode == Unibase.Platform.Automation.Enums.AutomationMode.AdvancedMode) { eval('bizgaze_automation_flow_main.getcontainerid("' + containerid + '")'); } if (instance.ParentActionId != 0) { yield Unibase.Platform.Automation.Components.ContactSelection.Instance().getResultActions(instance.ParentActionId); yield Unibase.Platform.Automation.Components.SendNotification.Instance().GetRuleActionInfo(Number(instance.ParentActionId)); $('#ddl_NotificationGrp').prop("disabled", true); $('#creategrp_btn').addClass('d-none'); } var _fileCacheHelper = Platform.Helpers.FileCacheHelper.Instance(); yield _fileCacheHelper.loadJsFileAsync("platform/automation/components/contactselection.js", function () { jQuery(".ContactSelection").html(Unibase.Platform.Automation.Components.ContactSelection.Instance().init(instance.RuleProviderId)); if (instance.RuleActionData.length != 0) { Unibase.Platform.Automation.Components.SendNotification.Instance().LoadNotificationData(instance.RuleActionData); } }); yield _fileCacheHelper.loadJsFileAsync("platform/automation/components/externalrecipients.js", function () { jQuery(".ExternalRecipients").html(Unibase.Platform.Automation.Components.ExternalRecipients.Instance().init(instance.RuleProviderId)); Unibase.Platform.Automation.Components.ExternalRecipients.Instance().load(instance.RuleProviderId); }); var url = _appsettings.server_url() + '/apis/v4/unibase/platform/apps/installedappautocomplete'; AutoCompleteHelper.getHelper().Create("#ddl_createinstalledid", "#hf_Autocomplete_InstalledApp", url, function (response) { var data = response; }); $('#creategrp_btn').click(function () { Unibase.Platform.Automation.Components.NotificationGroup.Instance().init(0, null, true); }); $("#btnCloseNotification").click(function () { $('#' + containerid).modal('hide'); $('#' + containerid).remove(); if (Unibase.Platform.Automation.Components.SendNotification.Instance().AutomationMode == Unibase.Platform.Automation.Enums.AutomationMode.NormalMode) { if (Unibase.Platform.Automation.Components.SendNotification.Instance().AutomationMode) { if (Unibase.Platform.Automation.Components.SendNotification.Instance().IsAutomationMode) { Unibase.Platform.Automation.Components.Rule.Instance().ChangeAction(instance.RowIndex, id); } } } else { eval("bizgaze_automation_flow_main.getpopupclosed()"); } Unibase.Platform.Automation.Components.Conditions.conditionArray = []; }); $('.isparent').change(function () { if ($('.isparent').is(':checked')) { $('.Parentcolumns_info').removeClass('d-none'); } else { $('.Parentcolumns_info').addClass('d-none'); } }); if (instance.RuleInstance.IsStageChangeEvent()) { $('#SelectstagesDiv').removeClass('d-none'); yield Unibase.Platform.Automation.Components.SendNotification.Instance().LoadAppStages(); } else { $('#SelectstagesDiv').addClass('d-none'); } $("#btnSaveNotification").click(function () { let appcontrolid = "frmUnibase_SendNotification"; let result = Unibase.Platform.Forms.Components.FormViewer.Instance().requiredFieldValidation(appcontrolid); if (result == false) { MessageHelper.Instance().showError("Mandatory fields are missing", "Validate_NotificationAction"); return false; } else { Unibase.Platform.Automation.Components.SendNotification.Instance().SaveNotificationAction(id, containerid); } }); $("#ddl_SubjectTokens").change(function () { var textAreaTxt = $("#txtNotifications_MessageSubject").val().toString(); var txtToAdd = '{{' + $("#ddl_SubjectTokens option:selected").text() + '}}'; var firsttext = textAreaTxt.slice(0, SendNotification.Instance().tokenposition); var lasttext = textAreaTxt.slice(SendNotification.Instance().tokenposition, textAreaTxt.length); $("#txtNotifications_MessageSubject").val(firsttext + txtToAdd + lasttext); $("#ddl_SubjectTokens").val(0); }); $("#ddl_BodyTokens").change(function (event) { var textAreaTxt = $("#txtNotifications_MessageBody").val().toString(); var txtToAdd = '{{' + $("#ddl_BodyTokens option:selected").text() + '}}'; var firsttext = textAreaTxt.slice(0, SendNotification.Instance().tokenposition); var lasttext = textAreaTxt.slice(SendNotification.Instance().tokenposition, textAreaTxt.length); $("#txtNotifications_MessageBody").val(firsttext + txtToAdd + lasttext); $("#ddl_BodyTokens").val(0); }); $("#txtNotifications_MessageBody").focusout(function (event) { SendNotification.Instance().tokenposition = event["target"]["selectionStart"]; }); $("#txtNotifications_MessageSubject").focusout(function (event) { SendNotification.Instance().tokenposition = event["target"]["selectionStart"]; }); $("#ddl_NotificationType").val($("#hf_NotificationType").val()); let rpid = instance.RuleProviderId; if (rpid != 0) { Unibase.Platform.Automation.Components.SendNotification.Instance().LoadMsgSubjectTokens(rpid); Unibase.Platform.Automation.Components.SendNotification.Instance().LoadMsgBodyTokens(rpid); yield Unibase.Platform.Automation.Components.SendNotification.Instance().LoadParentTokens(rpid); Unibase.Platform.Automation.Components.SendNotification.Instance().LoadRefColumns(rpid); Unibase.Platform.Automation.Components.ContactSelection.Instance().loadQueryBuilder(rpid, null); } if (id != "") { Unibase.Platform.Automation.Components.SendNotification.Instance().EditNotificationAction(id, containerid); } $("#ddl_createinstalledid").change(function () { $('#ddl_Form').html(''); var installedid = Number($("#ddl_createinstalledid option:selected").val()); if (installedid != 0) { Unibase.Platform.Automation.Managers.RuleManager.Instance().getCreateFormsByInstalledAppId(installedid).then(function (response) { if (response.result != null) { var html = ''; for (let i = 0; i < response.result.length; i++) { html += ''; } $('#ddl_Form').append(html); } }); } }); $('#ddl_NotificationType').change(function () { if ($("#ddl_NotificationType").val() == "6") { $('#createform_row').removeClass('hidden'); } else { $('#createform_row').addClass('hidden'); } }); }); } ToggleNotificationConditions() { $('#ActionConditionsDiv').toggleClass("hidden"); if ($('.conditionicon').hasClass('fa-angle-down')) { $('.conditionicon').removeClass('fa-angle-down').addClass('fa-angle-up'); Unibase.Platform.Automation.Components.ContactSelection.Instance().loadQueryBuilder(Unibase.Platform.Automation.Components.SendNotification.Instance().RuleProviderId, null); } else { $('.conditionicon').removeClass('fa-angle-up').addClass('fa-angle-down'); } } ToggleExternalRecipients() { $("#ExternalRecipientsDiv").toggle(function () { $("#btn_ExternalRecipients").addClass("hidden"); $("#ExternalRecipientsDiv").removeClass("hidden"); }); } LoadAppStages() { return __awaiter(this, void 0, void 0, function* () { var html = ''; var fromstage = ''; var tostage = ''; var installeappid = Unibase.Platform.Automation.Components.Rule.Instance().RuleInstalledAppId; yield Unibase.Platform.Apps.Managers.StageManager.Instance().getStages(installeappid).then(function (response) { if (response.result != null) { for (let i = 0; i < response.result.length; i++) { var data = response.result[i]; html += ''; } } $('.from_stage_notification').html(fromstage + html); $('.to_stage_notification').html(tostage + html); }); }); } Toggleadvancedoptions() { if ($('.arrowicon').hasClass('fa-angle-down')) { $('.arrowicon').removeClass('fa-angle-down').addClass('fa-angle-up'); } else { $('.arrowicon').removeClass('fa-angle-up').addClass('fa-angle-down'); } $('.Advanced_options').toggleClass("hidden"); } GetRuleActionInfo(parentactionid) { return __awaiter(this, void 0, void 0, function* () { yield Unibase.Platform.Automation.Managers.RuleManager.Instance().getRuleAction(parentactionid).then(function (response) { if (response != null) { var html = ''; $('#ddl_NotificationGrp').html('').html(html); } }); }); } EditNotificationAction(id, containerid) { let actionid = Number(id); $("#Spn_SendNotification").text("Edit Notification"); Unibase.Platform.Automation.Managers.RuleManager.Instance().getRuleAction(actionid).then(function (response) { $("#txtNotifications_RuleActionName").val(response.RuleActionName); $("#txtNotifications_MessageSubject").val(response.BString1); $("#txtNotifications_MessageBody").val(response.BString2); $("#ddl_NotificationType").val(response.String4); $("#hf_RefColumn").val(response.BString3); $('#message_result').val(Number(response.BString5)); $('#ddl_NotificationGrp option[value=' + response.NotificationGroupId + ']').prop('selected', true); if (response.ResultActionId != null && response.ResultActionId != "") { $('#ddl_ResultAction').val(response.ResultActionId); } if (!Unibase.Platform.Automation.Components.SendNotification.Instance().IsAutomationMode) { Unibase.Platform.Automation.Components.SendNotification.Instance().RuleId = response.RuleId; Unibase.Platform.Automation.Components.SendNotification.Instance().RuleEventId = response.RuleEventId; Unibase.Platform.Automation.Components.SendNotification.Instance().EventGroupId = response.EventGroupId; Unibase.Platform.Automation.Components.SendNotification.Instance().ActionId = response.ActionId; Unibase.Platform.Automation.Components.SendNotification.Instance().ParentActionId = response.ParentActionId; } if (response.ExecuteStatusId != Number(Unibase.Platform.Automation.Enums.ExecuteActionStatus.Approved)) $("#chkAutoApprovedNotification").prop("checked", false); else $("#chkAutoApprovedNotification").prop("checked", true); $("#div_Subject").addClass('floating-label-form-group-with-value'); $("#div_Body").addClass('floating-label-form-group-with-value'); Unibase.Platform.Automation.Components.ContactSelection.Instance().BindRecipients(response.RuleActionId); Unibase.Platform.Automation.Components.ContactSelection.Instance().CheckContactColumns(response.Users); Unibase.Platform.Automation.Components.ContactSelection.Instance().CheckSecondaryContactColumns(response.SecondaryUsers); $("#btn_ActionConditions").addClass("hidden"); if (response.SqlWhere != null && response.SqlWhere != "") { $("#ActionConditionsDiv").removeClass("hidden"); $('.conditionicon').removeClass('fa-angle-down').addClass('fa-angle-up'); } if (response.FromStage != 0 && response.ToStage != 0) { $('.from_stage_notification option[value=' + response.FromStage + ' ]').prop('selected', true); $('to_stage_notification option[value=' + response.ToStage + ']').prop('selected', true); } Unibase.Platform.Automation.Components.ContactSelection.Instance().loadQueryBuilder(response.RuleProviderId, response.SqlWhere); $("#btn_ActionConditions").addClass("hidden"); if (response.String6 != null && response.String6 != "") { $('#createform_row').removeClass('hidden'); Unibase.Platform.Forms.Managers.FormManager.Instance().getFormByAppConfiguration(Number(response.String6)).then(function (responsedata) { if (responsedata.result != null) { $('#ddl_Form').append(''); Unibase.Platform.Apps.Managers.AppManager.Instance().getInstallApp(Number(responsedata.result.InstalledAppId)).then(function (resultinfo) { if (resultinfo.result != null) { $('#ddl_createinstalledid').append(''); } }); } }); } if (response.IsParent) { $('.isparent').prop("checked", true); $('.Parentcolumns_info').removeClass('d-none'); if (response.String2 != null) $('#parent_pkid').find("#" + response.String2 + "").attr("selected", "true"); } eval('_floatingLabelHelper.init();'); }); } LoadNotificationData(Data) { for (var i = 0; i < Data.length; i++) { $("#txtNotifications_RuleActionName").val(Data[i].RuleActionName); $("#txtNotifications_MessageSubject").val(Data[i].BString1); $("#txtNotifications_MessageBody").val(Data[i].BString2); $("#ddl_NotificationType").val(Data[i].String4); $("#hf_RefColumn").val(Data[i].BString3); if (!Data[i].AutoApproved) $("#chkAutoApprovedNotification").prop("checked", false); else $("#chkAutoApprovedNotification").prop("checked", true); Unibase.Platform.Automation.Components.ContactSelection.Instance().CheckContactColumns(Data[i].Users); Unibase.Platform.Automation.Components.ContactSelection.Instance().CheckSecondaryContactColumns(Data[i].SecondaryUsers); $("#div_Subject").addClass('floating-label-form-group-with-value'); $("#div_Body").addClass('floating-label-form-group-with-value'); if (Data[i].RecipientsData != null) { $("#select2_Roles").val(Data[i].RecipientsData.RoleRecipients).trigger('change'); $("#select2_Users").val(Data[i].RecipientsData.UserRecipients).trigger('change'); } if (Data[i].SqlWhere != "" && Data[i].SqlWhere != null) { Unibase.Platform.Automation.Components.ContactSelection.Instance().loadQueryBuilder(Unibase.Platform.Automation.Components.SendNotification.Instance().RuleProviderId, Data[i].SqlWhere); $("#btn_ActionConditions").addClass("hidden"); $("#ActionConditionsDiv").removeClass("hidden"); } eval('_floatingLabelHelper.init();'); } } SaveNotificationAction(notificationid, containerid) { var instance = this; let ruleactionid = Number(notificationid); let queryelmnt = $("#builder"); let recipients = Unibase.Platform.Automation.Components.ContactSelection.Instance().GetRecipients(); let contactcolumns = Unibase.Platform.Automation.Components.ContactSelection.Instance().getContactColumns(); let secondarycontactcolumns = Unibase.Platform.Automation.Components.ContactSelection.Instance().getSecondaryContactColumns(); let externalroles = Unibase.Platform.Automation.Components.ExternalRecipients.Instance().GetExternalRoles(); let externalusers = Unibase.Platform.Automation.Components.ExternalRecipients.Instance().GetExternalUsers(); let model = new Unibase.Platform.Automation.Requests.RuleAction(); model.RuleActionId = ruleactionid; model.RuleActionName = $("#txtNotifications_RuleActionName").val().toString(); model.String4 = Number($("#ddl_NotificationType option:selected").val()); model.BString1 = $("#txtNotifications_MessageSubject").val().toString(); model.BString2 = $("#txtNotifications_MessageBody").val().toString(); model.BString3 = $('#ddl_RefColumn option:selected').val() == undefined ? null : $('#ddl_RefColumn option:selected').val().toString(); model.NotificationGroupId = $('#ddl_NotificationGrp').val() == undefined ? 0 : Number($('#ddl_NotificationGrp').val()); if (model.NotificationGroupId == 0) { MessageHelper.Instance().showError("Please Select Notification Group", "Validate_NotificationAction"); return; } if (instance.RuleInstance.IsStageChangeEvent()) { model.FromStage = $('.from_stage_notificaction option:selected').val() != "0" ? Number($('.from_stage_notification option:selected').val()) : 0; model.ToStage = $('.to_stage_notification option:selected').val() != "0" ? Number($('.to_stage_notification option:selected').val()) : 0; } model.BString6 = externalroles; model.BString7 = externalusers; model.BString5 = $('#message_result option:selected').val().toString(); model.ExternalReportId = ($("#txtAutoComplete_Reports option:selected").val() == undefined) ? 0 : Number($("#txtAutoComplete_Reports option:selected").val()); model.ExternalReportColumnId = Number($("#txtAutoComplete_ReportColumns option:selected").val()); model.ProviderColumnId = Number($("#txtAutoComplete_ProviderColumns option:selected").val()); model.ActionId = Unibase.Platform.Automation.Components.SendNotification.Instance().ActionId; model.RuleId = 0; model.Users = contactcolumns; model.SecondaryUsers = secondarycontactcolumns; model.String2 = $('#parent_pkid option:selected').text() == "Select Token" ? null : $('#parent_pkid option:selected').text(); let query = queryelmnt.queryBuilder('getSQL', false, true); if (query != null) { model.SqlWhere = queryelmnt.queryBuilder('getSQL', false, true).sql.replace(/\n/g, " ").replace(/LIKE/g, "ILIKE"); ; model.SqlWhereJson = JSON.stringify(queryelmnt.queryBuilder('getSQL', false, true)); } else { model.SqlWhere = ""; model.SqlWhereJson = ""; } if ($("#ddl_NotificationType").val() == "6") { model.String6 = $('#ddl_Form option:selected').val() == undefined || $('#ddl_Form option:selected').val() == null ? "" : $('#ddl_Form option:selected').val().toString(); } else { model.String6 = ""; } model.String7 = true; model.IsParent = $('.isparent').is(":checked"); model.ResultActionId = Number($("#ddl_ResultAction option:selected").val()); if (model.ResultActionId != 0) { model.ResultActionName = $("#ddl_ResultAction option:selected").text(); } else { model.ResultActionName = ""; } model.DelayTime = 0; model.ParentActionId = Unibase.Platform.Automation.Components.SendNotification.Instance().ParentActionId; model.AutoApproved = $('#chkAutoApprovedNotification').is(':checked'); model.RecipientsData = recipients; model.RowIndex = Unibase.Platform.Automation.Components.SendNotification.Instance().RowIndex; if (Unibase.Platform.Automation.Components.SendNotification.Instance().IsAutomationMode) { if (Unibase.Platform.Automation.Components.SendNotification.Instance().AutomationMode == Unibase.Platform.Automation.Enums.AutomationMode.NormalMode) { Unibase.Platform.Automation.Components.Rule.Instance().RuleActionsArray(model); $('#' + containerid).modal('hide'); $('#' + containerid).remove(); Unibase.Platform.Automation.Components.Conditions.conditionArray = []; } else { model.RuleId = eval("bizgaze_automation_flow_main.getruleid()"); Automation.Managers.RuleManager.Instance().saveRuleAction(model).then(function (response) { if (response.status == Unibase.Data.Status.Error) { MessageHelper.Instance().showError(response.message, "Validate_NotificationAction"); } else { MessageHelper.Instance().showSuccess(response.message, "Validate_NotificationAction"); $('#' + containerid).modal('hide'); $('#' + containerid).remove(); Unibase.Platform.Automation.Components.Conditions.conditionArray = []; var actionname = response.result.RuleActionName; eval("bizgaze_automation_flow_main.savenotificationblock('" + response.result.RuleActionId + "','" + actionname + "')"); } }); } } else { model.RuleId = Unibase.Platform.Automation.Components.SendNotification.Instance().RuleId; model.EventGroupId = Unibase.Platform.Automation.Components.SendNotification.Instance().EventGroupId; model.RuleEventId = Unibase.Platform.Automation.Components.SendNotification.Instance().RuleEventId; model.ActionId = Unibase.Platform.Automation.Components.SendNotification.Instance().ActionId; model.ParentActionId = Unibase.Platform.Automation.Components.SendNotification.Instance().ParentActionId; Automation.Managers.RuleManager.Instance().saveRuleAction(model).then(function (response) { if (response.status == Unibase.Data.Status.Error) { MessageHelper.Instance().showError(response.message, "Validate_NotificationAction"); } else { MessageHelper.Instance().showSuccess(response.message, "Validate_NotificationAction"); $('#' + containerid).modal('hide'); $('#' + containerid).remove(); Unibase.Platform.Automation.Components.Conditions.conditionArray = []; } }); } } LoadMsgSubjectTokens(ruleproviderid) { Unibase.Platform.Automation.Managers.RuleManager.Instance().getTokens(ruleproviderid).then(function (response) { let cmbConditionProperties = document.getElementById('ddl_SubjectTokens'); $('#ddl_SubjectTokens').empty(); var defaultOpt1 = document.createElement("option"); defaultOpt1.text = "Select Token"; defaultOpt1.value = "0"; cmbConditionProperties.appendChild(defaultOpt1); for (let i = 0; i <= response.length - 1; i++) { var opt = document.createElement("option"); opt.text = response[i]; opt.value = (i + 1).toString(); cmbConditionProperties.appendChild(opt); } }); } LoadMsgBodyTokens(ruleproviderid) { Unibase.Platform.Automation.Managers.RuleManager.Instance().getTokens(ruleproviderid).then(function (response) { let cmbConditionProperties = document.getElementById('ddl_BodyTokens'); $('#ddl_BodyTokens').empty(); var defaultOpt1 = document.createElement("option"); defaultOpt1.text = "Select Token"; defaultOpt1.value = "0"; cmbConditionProperties.appendChild(defaultOpt1); for (let i = 0; i <= response.length - 1; i++) { var opt = document.createElement("option"); opt.text = response[i]; opt.value = (i + 1).toString(); cmbConditionProperties.appendChild(opt); } }); } LoadParentTokens(ruleproviderid) { return __awaiter(this, void 0, void 0, function* () { yield Unibase.Platform.Automation.Managers.RuleManager.Instance().getTokens(ruleproviderid).then(function (response) { $('#parent_pkid').html(''); var html = ""; for (let i = 0; i <= response.length - 1; i++) { html += ''; } $('#parent_pkid').append(html); }); }); } LoadRefColumns(ruleproviderid) { Unibase.Platform.Automation.Managers.RuleManager.Instance().getTokens(ruleproviderid).then(function (response) { let cmbConditionProperties = document.getElementById('ddl_RefColumn'); $('#ddl_RefColumn').empty(); var defaultOpt1 = document.createElement("option"); defaultOpt1.text = "Select"; defaultOpt1.value = ""; cmbConditionProperties.appendChild(defaultOpt1); for (let i = 0; i <= response.length - 1; i++) { var opt = document.createElement("option"); opt.text = response[i]; opt.value = response[i]; cmbConditionProperties.appendChild(opt); } if ($("#hf_RefColumn").val() == "") { $("#ddl_RefColumn").val(null); } else { $("#ddl_RefColumn").val($("#hf_RefColumn").val()); } }); } static Instance() { if (this.instance === undefined) { this.instance = new SendNotification(); } return this.instance; } } Components.SendNotification = SendNotification; })(Components = Automation.Components || (Automation.Components = {})); })(Automation = Platform.Automation || (Platform.Automation = {})); })(Platform = Unibase.Platform || (Unibase.Platform = {})); })(Unibase || (Unibase = {}));