code: function Jumio(config) {
          var _this = this;
          // setup configuration with defaults
          this.config = __assign({ version: "1.0.0", identityApiBaseUrl: exports.identityRegionApiUrlMap[config.region], documentApiBaseUrl: exports.documentRegionApiUrlMap[config.region], callbackWhitelist: exports.regionCallbackWhitelistMap[config.region], handleIdentityVerification: function (_result) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
                  return [2 /*return*/];
              }); }); }, handleDocumentVerification: function (_result) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
                  return [2 /*return*/];
              }); }); }, log: ts_log_1.dummyLogger }, config);
          // keep a shorter reference to the logger
          this.log = this.config.log;
          // build company-specific user agent
          var userAgent = this.config.company + "/" + this.config.version;
          // configure axios for making API requests to the identity verification api
          this.identityApi = axios_1.default.create({
              baseURL: this.config.identityApiBaseUrl,
              auth: {
                  username: this.config.apiToken,
                  password: this.config.apiSecret
              },
              headers: {
                  "User-Agent": userAgent
              }
          });
          // configure axios for making API requests to the document verification api
          this.documentApi = axios_1.default.create({
              baseURL: this.config.documentApiBaseUrl,
              auth: {
                  username: this.config.apiToken,
                  password: this.config.apiSecret
              },
              headers: {
                  "User-Agent": userAgent
              }
          });
          // log initialized
          this.log.info({
              identityApiBaseUrl: this.config.identityApiBaseUrl,
              documentApiBaseUrl: this.config.documentApiBaseUrl,
              apiToken: this.config.apiToken,
              apiSecret: new Array(this.config.apiSecret.length + 1).join("x"),
              userAgent: userAgent
          }, "initialized");
      }
docs: Sets up the library.
  
  @param config Configuration