Created
July 17, 2016 08:59
-
-
Save hectorlorenzo/f93b3169da8d9c9264c2bfb6f7c5f683 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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