lib/api-syncRecords.js
function listLocalDatasetClientData(datasetClient, cb) {
  syncStorage.readDatasetClientWithRecords(datasetClient.getId(), function(err, datasetClientsWithRecords) {
    if (err) {
      return cb(err);
    }
    //no one sync loop has completed yet, return null
    if (!datasetClientsWithRecords || !datasetClientsWithRecords.syncCompleted) {
      return cb(null, null);
    } else {
      return cb(null, datasetClientsWithRecords);
    }
  });
}
function listLocalDatasetClientData(datasetClient, cb) {
  syncStorage.readDatasetClientWithRecords(datasetClient.getId(), function(err, datasetClientsWithRecords) {
    if (err) {
      return cb(err);
    }
    //no one sync loop has completed yet, return null
    if (!datasetClientsWithRecords || !datasetClientsWithRecords.syncCompleted) {
      return cb(null, null);
    } else {
      return cb(null, datasetClientsWithRecords);
    }
  });
}
List the records for the given datasetClient
@param {DatasetClient} datasetClient
@param {Function} cb