2019-12-12 12:59:26 +11:00
|
|
|
import { ajax } from "discourse/lib/ajax";
|
2020-05-06 19:06:14 -03:00
|
|
|
import EmberObject from "@ember/object";
|
2019-12-12 12:59:26 +11:00
|
|
|
|
2020-05-06 19:06:14 -03:00
|
|
|
const Customer = EmberObject.extend({
|
2019-12-12 12:59:26 +11:00
|
|
|
save() {
|
|
|
|
|
const data = {
|
|
|
|
|
source: this.source
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return ajax("/s/customers", { method: "post", data });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default Customer;
|