Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const NodeId = require("node-opcua-nodeid").NodeId;
const sameNodeId = require("node-opcua-nodeid").sameNodeId;
const lowerFirstLetter = require("node-opcua-utils").lowerFirstLetter;
const doDebug = false;
const BaseNode = require("./base_node").BaseNode;
const UAVariable = require("./ua_variable").UAVariable;
const UAMethod = require("./ua_method").UAMethod;
const UAObjectType = require("./ua_object_type").UAObjectType;
const constructBrowsePathFromQualifiedName = require("node-opcua-service-translate-browse-path").constructBrowsePathFromQualifiedName;
const SimpleAttributeOperand = require("node-opcua-service-filter").SimpleAttributeOperand;
const AttributeIds = require("node-opcua-data-model").AttributeIds;
const context = require("./session_context").SessionContext.defaultContext;
const DataValue = require("node-opcua-data-value").DataValue;
const Namespace = require("./namespace").Namespace;
/**
* @class EventData
* @param eventTypeNode {BaseNode}
* @constructor
*/
function EventData(eventTypeNode) {
this.__nodes = {};
this.$eventDataSource = eventTypeNode;
assert(eventTypeNode instanceof BaseNode);