function processBeaconsSheet() {
  try {
    for (var row in sheetData['Beacons']) {
      var beaconData = sheetData['Beacons'][row];
      if (beaconData.blocks !== undefined) {
        beaconData.blocks = beaconData.blocks.split(',');
      } else {
        beaconData.blocks = [];
      }
      beacons[beaconData.beacon] = beaconData;
    }
    console.log('SUCCESS reading beacon block rules');
  } catch (e) {
    console.log('ERROR reading beacon block rules! ' + e);
  }
}
// PROCESS SPECIAL CASE SHEET - Beacons
PROCESS SPECIAL CASE SHEET - Beacons
PROCESS SPECIAL CASE SHEET - Beacons
function processBeaconsSheet() {
  try {
    for (var row in sheetData['Beacons']) {
      var beaconData = sheetData['Beacons'][row];
      if (beaconData.blocks !== undefined) {
        beaconData.blocks = beaconData.blocks.split(',');
      } else {
        beaconData.blocks = [];
      }
      beacons[beaconData.beacon] = beaconData;
    }
    console.log('SUCCESS reading beacon block rules');
  } catch (e) {
    console.log('ERROR reading beacon block rules! ' + e);
  }
}
function processBeaconsSheet ( ) { try { for ( var row in sheetData [ 'Beacons' ] ) { var beaconData = sheetData [ 'Beacons' ] [ row ] ; if ( beaconData . blocks !== undefined ) { beaconData . blocks = beaconData . blocks . split ( ',' ) ; } else { beaconData . blocks = [ ] ; } beacons [ beaconData . beacon ] = beaconData ; } console . log ( 'SUCCESS reading beacon block rules' ) ; } catch ( e ) { console . log ( 'ERROR reading beacon block rules! ' + e ) ; } }
PROCESS SPECIAL CASE SHEET - Beacons
PROCESS SPECIAL CASE SHEET - Beacons