Skip to content

Instantly share code, notes, and snippets.

@hectorlorenzo
Created July 17, 2016 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hectorlorenzo/f93b3169da8d9c9264c2bfb6f7c5f683 to your computer and use it in GitHub Desktop.
Save hectorlorenzo/f93b3169da8d9c9264c2bfb6f7c5f683 to your computer and use it in GitHub Desktop.
import ApiWrapper from './apiwrapper'
import JeevesAbstract from './JeevesAbstract'
import {EventEmitter} from 'events'
let Jeeves = Object.assign({}, JeevesAbstract, EventEmitter, {
items: {
businessSegments: []
},
namespace: 'BUSINESS_SEGMENTS',
api: {
businessSegments: ApiWrapper({
moduleId: '574d094b4039c93608010aeb',
formId: '574d09454039c93608004ef5',
businessId: '574d09454039c93608004386',
parentId: '574d09464039c93608004f02'
})
}
})
export default function () {
return Object.assign(Object.create(Jeeves))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment