{
  "version": 3,
  "sources": ["../../src/api-client_services.ts"],
  "sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\nimport { Package, Service, logger } from \"qcobjects\";\n\nexport class QuickCorpCloud extends Service {\n  headers: any;\n  url: any;\n  basePath: any;\n  data: any;\n  constructor({\n    name = \"quickcorp_cloud\",\n    external = true,\n    useHTTP2 = true,\n    cached = false,\n    method = \"post\",\n    headers = {\n      \"origin\": \"localhost\",\n      \"content-type\": \"application/json\"\n    },\n    basePath = \"https://cloud.quickcorp.org/\",\n    url = \"\",\n    withCredentials = false\n  }) {\n    super({\n      name,\n      external,\n      useHTTP2,\n      cached,\n      method,\n      headers,\n      basePath,\n      url,\n      withCredentials\n    });\n\n  }\n\n  _new_(o: any) {\n    // service instantiated\n    this.headers[\"authorization\"] = \"Basic token\";\n    this.url = this.basePath + o.apiMethod;\n    this.data = o.data;\n  }\n\n  done(service: any, standardResponse: any) {\n    // service loaded\n    logger.debug(standardResponse);\n  }\n\n  fail(e: any) {\n    logger.debug(e);\n  }\n\n}\n\nPackage(\"org.quickcorp.qcobjects.api.client_services\", [\n  QuickCorpCloud\n]);\n\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCA,uBAAyC;AAElC,MAAM,uBAAuB,yBAAQ;AAAA,EAlC5C,OAkC4C;AAAA;AAAA;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,IACV,OAAO;AAAA,IACP,WAAW;AAAA,IACX,WAAW;AAAA,IACX,SAAS;AAAA,IACT,SAAS;AAAA,IACT,UAAU;AAAA,MACR,UAAU;AAAA,MACV,gBAAgB;AAAA,IAClB;AAAA,IACA,WAAW;AAAA,IACX,MAAM;AAAA,IACN,kBAAkB;AAAA,EACpB,GAAG;AACD,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EAEH;AAAA,EAEA,MAAM,GAAQ;AAEZ,SAAK,QAAQ,eAAe,IAAI;AAChC,SAAK,MAAM,KAAK,WAAW,EAAE;AAC7B,SAAK,OAAO,EAAE;AAAA,EAChB;AAAA,EAEA,KAAK,SAAc,kBAAuB;AAExC,4BAAO,MAAM,gBAAgB;AAAA,EAC/B;AAAA,EAEA,KAAK,GAAQ;AACX,4BAAO,MAAM,CAAC;AAAA,EAChB;AAEF;AAAA,IAEA,0BAAQ,+CAA+C;AAAA,EACrD;AACF,CAAC;",
  "names": []
}
