code: function storeJob(job) {
      let storeEmitter = new EventEmitter();
      dbMod.addToDB(job, nameDB, accountDB, passwordDB, addressDB, portDB, proxyBool)
          .then(() => {
          if (Array.isArray(job)) {
              logger_1.logger.log('success', `Insertion of ${job.length} jobID.json files in ${nameDB}`);
          }
          else
              logger_1.logger.log('success', `Insertion of 1 jobID.json files in ${nameDB}`);
          storeEmitter.emit('storeDone');
      })
          .catch((err) => {
          storeEmitter.emit('storeError', err);
      });
      return storeEmitter;
  }
docs: /*
  function storeJob that call addToDb function with a job.
  @job : job that will store into the couchDB database.