var CrudConfig, JobListenerConfig, PlanPublishConfig, _, actions, extendConfig, getIds, makeSimpleStore, moment, ref, ref1, store;
ref = require('./helpers'), CrudConfig = ref.CrudConfig, makeSimpleStore = ref.makeSimpleStore, extendConfig = ref.extendConfig;
JobListenerConfig = require('../helpers/job').JobListenerConfig;
_ = require('underscore');
moment = require('moment');
getIds = function(obj) {
var id, jobId, publish_job;
publish_job = obj.publish_job, id = obj.id;
jobId = (publish_job != null ? publish_job.id : void 0) || null;
return {
id: id,
jobId: jobId
};
};
PlanPublishConfig = {
_getIds: function(obj) {
return this.exports._getIds(obj);
},
exports: {
_getIds: getIds
}
};
extendConfig(PlanPublishConfig, new JobListenerConfig(2000, 100));
PlanPublishConfig.exports.isPublishing = PlanPublishConfig.exports.isProgressing;
PlanPublishConfig.exports.isPublished = PlanPublishConfig.exports.isSucceeded;
ref1 = makeSimpleStore(PlanPublishConfig), actions = ref1.actions, store = ref1.store;
module.exports = {
PlanPublishActions: actions,
PlanPublishStore: store
};
|