text: /* eslint-disable linebreak-style */
  /* eslint-disable  object-curly-spacing*/
  // /* eslint-disable no-undef */
  /* eslint-disable eol-last */
  /* eslint-disable indent */
  /* eslint-disable max-len */
  // eslint-disable-next-line no-dupe-else-if
  /** *********************************************************
   * Copyright (C) 2022
   * Worktez
   *
   * This program is free software; you can redistribute it and/or
   * modify it under the terms of the MIT License
   *
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   * See the MIT License for more details.
   ***********************************************************/
  
  const { getOrgUseAppKey } = require("../lib");
  
  exports.getOrgData = function(request, response) {
      const appKey = request.body.data.AppKey;
  
      let status = 200;
      let result;
  
      getOrgUseAppKey(appKey).then((data) => {
          if (data) {
              result = { data: {status: "OK", resultData: data} };
              return response.status(status).send(result);
          }
      }).catch((error) => {
          status = 500;
          result = { data: error };
          console.error("Error Getting Org Data", error);
          return response.status(status).send(result);
      });
  };
  