code: function registerRecord(service, moduleId, module) {
      const record = {
          moduleId: moduleId,
          module: module,
          enable: false
      };
  
      if (module.type && module.interval) {
          if (!service.master && record.module.type === 'push' || service.master && record.module.type !== 'push') {// eslint-disable-line
              // push for monitor or pull for master(default)
              record.delay = module.delay || 0;
              record.interval = module.interval || 1;
              // normalize the arguments
              if (record.delay < 0) {
                  record.delay = 0;
              }
              if (record.interval < 0) {
                  record.interval = 1;
              }
              record.interval = Math.ceil(record.interval);
              record.delay *= MS_OF_SECOND;
              record.interval *= MS_OF_SECOND;
              record.schedule = true;
          }
      }
  
      return record;
  }
docs: register a module service
  
  @param {Object} service consoleService object
  @param {String} moduleId adminConsole id/name
  @param {Object} module module object
  @api private