Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.8/.cache/esm/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.8/.cache/esm/098691061e7ae940.js

let AppError,INDUSTRIES_DATA,successResponse,catchAsync;_1e7‍.x([["default",()=>_1e7‍.o]]);_1e7‍.w("../../utils/apiError",[["default",["AppError"],function(v){AppError=v}]]);_1e7‍.w("../../utils/industries",[["INDUSTRIES_DATA",["INDUSTRIES_DATA"],function(v){INDUSTRIES_DATA=v}]]);_1e7‍.w("../../utils/responseFormat",[["successResponse",["successResponse"],function(v){successResponse=v}]]);_1e7‍.w("../../utils/catchAsync",[["default",["catchAsync"],function(v){catchAsync=v}]]);




const industries = catchAsync(async (req, res, next) => {
  const _inds = Object.keys(INDUSTRIES_DATA);
  return successResponse(res, _inds);
});

const occupations = catchAsync(async (req, res, next) => {
  const query = req.body.occupation;
  const data = INDUSTRIES_DATA[query];
  if (!data || data.length == 0) {
    return next(new AppError("Occupations not found.", 404));
  }
  return successResponse(res, data);
});

_1e7‍.d({ industries, occupations });

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists