mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-24 01:33:35 -05:00
29 lines
581 B
JavaScript
29 lines
581 B
JavaScript
let BaseModel;
|
|
let ModelsStrings;
|
|
|
|
function OrganizationModel (method, resource, graft) {
|
|
BaseModel.call(this, 'organizations');
|
|
|
|
this.Constructor = OrganizationModel;
|
|
this.label = ModelsStrings.get('labels.ORGANIZATION');
|
|
|
|
return this.create(method, resource, graft);
|
|
}
|
|
|
|
function OrganizationModelLoader (
|
|
_BaseModel_,
|
|
_ModelsStrings_
|
|
) {
|
|
BaseModel = _BaseModel_;
|
|
ModelsStrings = _ModelsStrings_;
|
|
|
|
return OrganizationModel;
|
|
}
|
|
|
|
OrganizationModelLoader.$inject = [
|
|
'BaseModel',
|
|
'ModelsStrings'
|
|
];
|
|
|
|
export default OrganizationModelLoader;
|