()
| 18 | module.exports = (Prepaid = (function () { |
| 19 | Prepaid = class Prepaid extends CocoModel { |
| 20 | static initClass () { |
| 21 | this.className = 'Prepaid' |
| 22 | this.prototype.urlRoot = '/db/prepaid' |
| 23 | } |
| 24 | |
| 25 | openSpots () { |
| 26 | if (this.get('redeemers') != null) { return this.get('maxRedeemers') - __guard__(this.get('redeemers'), x => x.length) } |