message.js
function Message (opts) {
  var self = this;
  events.EventEmitter.call(self);

  lib.copy(opts, self, 'uppercase');

  self.MessageId   = opts.MessageId   || opts._id  || null;
  self.Body        = opts.MessageBody || opts.Body || opts._str || null;
  self.MD5OfMessageBody = null;
  self.IdExtra     = opts.IdExtra     || null;
  self.queue       = opts.queue       || null;
  self.is_heartbeat= opts.is_heartbeat|| false;
  self.seq         = opts.seq         || null;

  self.log = debug('cqs:message:' + (self.MessageId || 'untitled'));
}
function Message (opts) {
  var self = this;
  events.EventEmitter.call(self);

  lib.copy(opts, self, 'uppercase');

  self.MessageId   = opts.MessageId   || opts._id  || null;
  self.Body        = opts.MessageBody || opts.Body || opts._str || null;
  self.MD5OfMessageBody = null;
  self.IdExtra     = opts.IdExtra     || null;
  self.queue       = opts.queue       || null;
  self.is_heartbeat= opts.is_heartbeat|| false;
  self.seq         = opts.seq         || null;

  self.log = debug('cqs:message:' + (self.MessageId || 'untitled'));
}
API