UNPKG

@opendash/plugin-openware

Version:

open.WARE Plugin for open.DASH

36 lines 1.39 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import * as Parse from "parse"; var Report = /** @class */ (function (_super) { __extends(Report, _super); function Report(attributes) { var _this = _super.call(this, "ReportingHistory", attributes) || this; var owner = Parse.User.current(); var acl = new Parse.ACL(); acl.setReadAccess(owner, true); acl.setWriteAccess(owner, true); _this.setACL(acl); _this.set("owner", owner); return _this; } Report.prototype.download = function () { return new Promise(function (resolve) { setTimeout(resolve, 3000); }); }; return Report; }(Parse.Object)); export { Report }; Parse.Object.registerSubclass("ReportingHistory", Report); //# sourceMappingURL=Report.js.map