code: function addToDB(data, nameDB, accountName, passwordDB, addressDB, portDB, proxyBool) {
      return __awaiter(this, void 0, void 0, function* () {
          let docList = Array.isArray(data) ? data : [data];
          let arrayData = docList.length > 500 ? arraySplit(docList, 500) : docList;
          for (let elem of arrayData) {
              let addObj = new addData(elem, nameDB, accountName, passwordDB, addressDB, portDB, proxyBool);
              yield addObj.three_curl();
          }
          ;
      });
  }
docs: /*
  Function addToDB that accept a single jobSerialInterface type object or an array of jobSerialInterface type object
  @data : data attempting to be insert into the couchDB database.
  @nameDB : name of the database.
  @accountName : name of user account for couchDB.
  @passwordDB : user password for couchDB
  #docList : Transform data in array if it's a single jobSerialInterface.
  #arrayData : If data length is higher than 500, we split array into array of 500 with the arraySplit function.
  #addObj : addData class object, we use await before next iteration of the loop.