(type)
| 881 | } |
| 882 | |
| 883 | expiredProducts (type) { |
| 884 | const now = new Date() |
| 885 | return _.filter((this.get('products') || []), p => (p.product === type) && (new Date(p.endDate) < now)) |
| 886 | } |
| 887 | |
| 888 | activeSalesCallProducts () { |
| 889 | return this.activeProducts(this.constructor.SALES_CALL_ACCESS_LEVEL) |