2018-10-18 02:18:29 +03:00
|
|
|
import moment from 'moment';
|
2022-03-08 14:32:01 +03:00
|
|
|
import {Factory} from 'miragejs';
|
2018-10-18 02:18:29 +03:00
|
|
|
|
|
|
|
export default Factory.extend({
|
|
|
|
type: 'content',
|
|
|
|
secret() {
|
|
|
|
if (this.integration) {
|
|
|
|
return `${this.integration.slug}_${this.type}_key-12345`;
|
|
|
|
}
|
|
|
|
return `${this.type}_key-12345`;
|
|
|
|
},
|
|
|
|
lastSeenAt() {
|
|
|
|
return moment.utc().format();
|
|
|
|
},
|
|
|
|
|
|
|
|
createdAt() { return moment.utc().format(); },
|
|
|
|
createdBy: 1,
|
|
|
|
updatedAt() { return moment.utc().format(); },
|
|
|
|
updatedBy: 1
|
|
|
|
});
|