lib/main.js
function enable_job(jobName, customParams, callback) {
      var _doArgs41 = doArgs(arguments, ['string', ['object', {}], 'function']);

      var _doArgs42 = _slicedToArray(_doArgs41, 3);

      jobName = _doArgs42[0];
      customParams = _doArgs42[1];
      callback = _doArgs42[2];


      var self = this;

      doRequest({
        method: 'POST',
        urlPattern: [JOB_ENABLE, jobName],
        noparse: true
      }, customParams, function (error, data) {
        if (error) {
          callback(error, data);
          return;
        }
        self.job_info(jobName, customParams, callback);
      });
    }
function enable_job(jobName, customParams, callback) {
      var _doArgs41 = doArgs(arguments, ['string', ['object', {}], 'function']);

      var _doArgs42 = _slicedToArray(_doArgs41, 3);

      jobName = _doArgs42[0];
      customParams = _doArgs42[1];
      callback = _doArgs42[2];


      var self = this;

      doRequest({
        method: 'POST',
        urlPattern: [JOB_ENABLE, jobName],
        noparse: true
      }, customParams, function (error, data) {
        if (error) {
          callback(error, data);
          return;
        }
        self.job_info(jobName, customParams, callback);
      });
    }
function enable_job ( jobName , customParams , callback ) { var _doArgs41 = doArgs ( arguments , [ 'string' , [ 'object' , { } ] , 'function' ] ) ; var _doArgs42 = _slicedToArray ( _doArgs41 , 3 ) ; jobName = _doArgs42 [ 0 ] ; customParams = _doArgs42 [ 1 ] ; callback = _doArgs42 [ 2 ] ; var self = this ; doRequest ( { method : 'POST' , urlPattern : [ JOB_ENABLE , jobName ] , noparse : true } , customParams , function ( error , data ) { if ( error ) { callback ( error , data ) ; return ; } self . job_info ( jobName , customParams , callback ) ; } ) ; }
Enables a job
Enables a job