Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (msg.correlation_id != null) {
sbmsg.correlationId = msg.correlation_id;
}
if (msg.reply_to_group_id != null) {
sbmsg.replyToSessionId = msg.reply_to_group_id;
}
if (msg.message_annotations != null) {
if (msg.message_annotations[Constants.partitionKey] != null) {
sbmsg.partitionKey = msg.message_annotations[Constants.partitionKey];
}
if (msg.message_annotations[Constants.viaPartitionKey] != null) {
sbmsg.viaPartitionKey = msg.message_annotations[Constants.viaPartitionKey];
}
if (msg.message_annotations[Constants.scheduledEnqueueTime] != null) {
sbmsg.scheduledEnqueueTimeUtc = msg.message_annotations[Constants.scheduledEnqueueTime];
}
}
const props: any = {};
if (msg.message_annotations != null) {
if (msg.message_annotations[Constants.deadLetterSource] != null) {
props.deadLetterSource = msg.message_annotations[Constants.deadLetterSource];
}
if (msg.message_annotations[Constants.enqueueSequenceNumber] != null) {
props.enqueuedSequenceNumber = msg.message_annotations[Constants.enqueueSequenceNumber];
}
if (msg.message_annotations[Constants.sequenceNumber] != null) {
if (Buffer.isBuffer(msg.message_annotations[Constants.sequenceNumber])) {
props.sequenceNumber = Long.fromBytesBE(msg.message_annotations[Constants.sequenceNumber]);
} else {if (msg.correlation_id != null) {
sbmsg.correlationId = msg.correlation_id;
}
if (msg.reply_to_group_id != null) {
sbmsg.replyToSessionId = msg.reply_to_group_id;
}
if (msg.message_annotations != null) {
if (msg.message_annotations[Constants.partitionKey] != null) {
sbmsg.partitionKey = msg.message_annotations[Constants.partitionKey];
}
if (msg.message_annotations[Constants.viaPartitionKey] != null) {
sbmsg.viaPartitionKey = msg.message_annotations[Constants.viaPartitionKey];
}
if (msg.message_annotations[Constants.scheduledEnqueueTime] != null) {
sbmsg.scheduledEnqueueTimeUtc = msg.message_annotations[Constants.scheduledEnqueueTime];
}
}
const props: any = {};
if (msg.message_annotations != null) {
if (msg.message_annotations[Constants.deadLetterSource] != null) {
props.deadLetterSource = msg.message_annotations[Constants.deadLetterSource];
}
if (msg.message_annotations[Constants.enqueueSequenceNumber] != null) {
props.enqueuedSequenceNumber = msg.message_annotations[Constants.enqueueSequenceNumber];
}
if (msg.message_annotations[Constants.sequenceNumber] != null) {
if (Buffer.isBuffer(msg.message_annotations[Constants.sequenceNumber])) {
props.sequenceNumber = Long.fromBytesBE(msg.message_annotations[Constants.sequenceNumber]);
} else {
props.sequenceNumber = Long.fromNumber(msg.message_annotations[Constants.sequenceNumber]);}
if (msg.correlation_id != null) {
sbmsg.correlationId = msg.correlation_id;
}
if (msg.reply_to_group_id != null) {
sbmsg.replyToSessionId = msg.reply_to_group_id;
}
if (msg.message_annotations != null) {
if (msg.message_annotations[Constants.partitionKey] != null) {
sbmsg.partitionKey = msg.message_annotations[Constants.partitionKey];
}
if (msg.message_annotations[Constants.viaPartitionKey] != null) {
sbmsg.viaPartitionKey = msg.message_annotations[Constants.viaPartitionKey];
}
if (msg.message_annotations[Constants.scheduledEnqueueTime] != null) {
sbmsg.scheduledEnqueueTimeUtc = msg.message_annotations[Constants.scheduledEnqueueTime];
}
}
const props: any = {};
if (msg.message_annotations != null) {
if (msg.message_annotations[Constants.deadLetterSource] != null) {
props.deadLetterSource = msg.message_annotations[Constants.deadLetterSource];
}
if (msg.message_annotations[Constants.enqueueSequenceNumber] != null) {
props.enqueuedSequenceNumber = msg.message_annotations[Constants.enqueueSequenceNumber];
}
if (msg.message_annotations[Constants.sequenceNumber] != null) {
if (Buffer.isBuffer(msg.message_annotations[Constants.sequenceNumber])) {
props.sequenceNumber = Long.fromBytesBE(msg.message_annotations[Constants.sequenceNumber]);
} else {if (msg.correlation_id != null) {
sbmsg.correlationId = msg.correlation_id;
}
if (msg.reply_to_group_id != null) {
sbmsg.replyToSessionId = msg.reply_to_group_id;
}
if (msg.message_annotations != null) {
if (msg.message_annotations[Constants.partitionKey] != null) {
sbmsg.partitionKey = msg.message_annotations[Constants.partitionKey];
}
if (msg.message_annotations[Constants.viaPartitionKey] != null) {
sbmsg.viaPartitionKey = msg.message_annotations[Constants.viaPartitionKey];
}
if (msg.message_annotations[Constants.scheduledEnqueueTime] != null) {
sbmsg.scheduledEnqueueTimeUtc = msg.message_annotations[Constants.scheduledEnqueueTime];
}
}
const props: any = {};
if (msg.message_annotations != null) {
if (msg.message_annotations[Constants.deadLetterSource] != null) {
props.deadLetterSource = msg.message_annotations[Constants.deadLetterSource];
}
if (msg.message_annotations[Constants.enqueueSequenceNumber] != null) {
props.enqueuedSequenceNumber = msg.message_annotations[Constants.enqueueSequenceNumber];
}
if (msg.message_annotations[Constants.sequenceNumber] != null) {
if (Buffer.isBuffer(msg.message_annotations[Constants.sequenceNumber])) {
props.sequenceNumber = Long.fromBytesBE(msg.message_annotations[Constants.sequenceNumber]);
} else {
props.sequenceNumber = Long.fromNumber(msg.message_annotations[Constants.sequenceNumber]);