Created
September 10, 2020 01:09
-
-
Save Elyx0/6539660fa630908a57bdbd57e0ab01dd to your computer and use it in GitHub Desktop.
spa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Breakpoint around | |
``` | |
var Oe = ["CustomerService", De] | |
, Ae = function(e, t, n, r) { | |
var a = e(r.api_url + "delivery_options.json?zone_code=:zone", { | |
zone: "@zone" | |
}); | |
return a.listOptionsByZone = function(e, t, r) { | |
var a = n.defer(); | |
return this.query({ | |
zone: e | |
}).$promise.then(function(e) { | |
console.log("Data have been received: " + JSON.stringify(e)), | |
angular.isFunction(t) && t(e), | |
a.resolve(e) | |
}, function(e) { | |
console.log("A failure have happen" + JSON.stringify(e)), | |
angular.isFunction(r) && r(e), | |
a.reject(e) | |
}), | |
a.promise | |
} | |
, | |
``` | |
monday = {...e.availableDates[0]} | |
e.availableDates.push(monday) | |
monday.code = "2020-04-06" | |
e.availableTimeWindows.forEach(x => x.isClosed = false) | |
---- | |
e.loadAvailableTimeWindows = function(r, o) { | |
--- | |
if (d) { | |
e.availableDates.length = 0; | |
} | |
} | |
var m, g, v; | |
return e.availableDates | |
"true" == i && 6 == p && (s = 2); | |
var d = n(a, t); | |
if (d) { | |
e.availableDates.length = 0; | |
====> PUT s = 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment