src/main.js
function (jobName, jobConfig, customParams, callback) {
      [jobName, jobConfig, customParams, callback] = doArgs(arguments, ['string', 'string', ['object', {}], 'function']);

      // Set the created job name!
      customParams.name = jobName;

      const self = this;

      doRequest({
        method: 'POST',
        urlPattern: [JOB_CREATE],
        request: {
          body: jobConfig,
          headers: { 'Content-Type': 'application/xml' }
        },
        noparse: true
      }, customParams, function (error, data) {
        if (error) {
          callback(error, data);
          return;
        }
        self.job_info(jobName, customParams, callback);
      });
    }
function (jobName, jobConfig, customParams, callback) {
      [jobName, jobConfig, customParams, callback] = doArgs(arguments, ['string', 'string', ['object', {}], 'function']);

      // Set the created job name!
      customParams.name = jobName;

      const self = this;

      doRequest({
        method: 'POST',
        urlPattern: [JOB_CREATE],
        request: {
          body: jobConfig,
          headers: { 'Content-Type': 'application/xml' }
        },
        noparse: true
      }, customParams, function (error, data) {
        if (error) {
          callback(error, data);
          return;
        }
        self.job_info(jobName, customParams, callback);
      });
    }
function ( jobName , jobConfig , customParams , callback ) { [ jobName , jobConfig , customParams , callback ] = doArgs ( arguments , [ 'string' , 'string' , [ 'object' , { } ] , 'function' ] ) ; // Set the created job name! customParams . name = jobName ; const self = this ; doRequest ( { method : 'POST' , urlPattern : [ JOB_CREATE ] , request : { body : jobConfig , headers : { 'Content-Type' : 'application/xml' } } , noparse : true } , customParams , function ( error , data ) { if ( error ) { callback ( error , data ) ; return ; } self . job_info ( jobName , customParams , callback ) ; } ) ; }
Create a new job based on a jobConfig string

@param {string} jobName
@param {string} jobConfig
@param {object|undefined} customParams is optional
@param {function} callback
Create a new job based on a jobConfig string