import AbstractService from './abstractService' import TaskAssigneeModel from '../models/taskAssignee' import moment from 'moment' export default class TaskAssigneeService extends AbstractService { constructor() { super({ create: '/tasks/{task_id}/assignees', delete: '/tasks/{task_id}/assignees/{user_id}', }) } processModel(model) { model.created = moment(model.created).toISOString() return model } modelFactory(data) { return new TaskAssigneeModel(data) } }