function getSyncMethod(model) {
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

  var forceAjaxSync = options.ajaxSync;
  var hasLocalStorage = (0, _utils.getLocalStorage)(model);

  return !forceAjaxSync && hasLocalStorage ? _sync.sync : ajaxSync;
}
Get the local or ajax sync call
@param {Model} model - Model to sync
@param {object} options - Options to pass, takes ajaxSync
@returns {function} The sync method that will be called