"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/regenerator"),t=require("lodash"),n=require("../../../../clients/jsonApi/index.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(e),s=a(r),o=function(){var e=u.default(s.default.mark((function e(){var r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCompanies();case 3:r=e.sent,e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0);case 9:return e.abrupt("return",r?t.sortBy(r,["name"]):[]);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}();exports.fetchCompanies=o;
//# sourceMappingURL=fetchCompanies.js.map
