Defaults = {};

Defaults.Tweets = function () {
  return {
    userId: null,
    defaultText: '',
    date: new Date().getTime(),
    variations: Helpers.getVariations(null, Defaults.Settings())
  };
};

Defaults.Variations = function () {
  return {
    text: null,
    time: null,
    enabled: true
  }
}

Defaults.Settings = function () {
  return {
    repeatCount: 4,
    repeatCountOptions: range(1, 5),
    intervalValue: 8,
    intervalValueOptions: range(1, 12),
    intervalUnit: 'Hours',
    hasVariations: false,
    intervalUnitOptions: [
      {title: 'Hours', millis: 1000*60*60},
      {title: 'Days', millis: 1000*60*60*24},
      {title: 'Weeks', millis: 1000*60*60*24*7}
    ]
  };
};

function range (start, end) {
  var array = new Array(end-start);
  for( var i=0; i<array.length; ++i)
    array[i] = start + i;
  return array;
}

Defaults = {};

Defaults.Tweets = function () {
  return {
    userId: null,
    defaultText: '',
    date: new Date().getTime(),
    variations: Helpers.getVariations(null, Defaults.Settings())
  };
};

Defaults.Variations = function () {
  return {
    text: null,
    time: null,
    enabled: true
  }
}

Defaults.Settings = function () {
  return {
    repeatCount: 2,
    repeatCountOptions: range(1, 5),
    intervalValue: 12,
    intervalValueOptions: range(1, 13),
    intervalUnit: 'Hours',
    hasVariations: false,
    intervalUnitOptions: [
      {title: 'Hours', millis: 1000*60*60},
      {title: 'Days', millis: 1000*60*60*24},
      {title: 'Weeks', millis: 1000*60*60*24*7}
    ]
  };
};

function range (start, end) {
  var array = new Array(end-start);
  for( var i=0; i<array.length; ++i)
    array[i] = start + i;
  return array;
}

Add 12 hour option and make it default
Add 12 hour option and make it default
