Skip to content

Instantly share code, notes, and snippets.

@Elyx0
Created September 10, 2020 01:09
Show Gist options
  • Save Elyx0/6539660fa630908a57bdbd57e0ab01dd to your computer and use it in GitHub Desktop.
Save Elyx0/6539660fa630908a57bdbd57e0ab01dd to your computer and use it in GitHub Desktop.
spa
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