'use strict';var _0x4fd6ea=_0x2e89;function _0x4da9(){var _0x228c47=['enumerable','Authorization','defineProperty','14qvsVaH','statusCodes','hasOwnProperty','Invalid\x20authorization\x20token\x20format.','91289HaRApT','header','../../config','jsonwebtoken','2890SNXiQn','getOwnPropertyNames','8jGHWZw','1847042nunbAL','errorResponse','Invalid\x20authorization\x20token.','1519914RcxnMZ','../utilities/response','default','508170eXGGQY','call','5400477GrsdlI','Bearer','__esModule','access_denied','1914555xpzPOY','getPrototypeOf','decode','user','verify','tokenExpired','object','Access\x20denied.\x20No\x20authorization\x20token\x20provided.','getOwnPropertyDescriptor','jwtSecret','1PyinnC','exports','1415440LtndID','unauthorized'];_0x4da9=function(){return _0x228c47;};return _0x4da9();}function _0x2e89(_0xdfd742,_0x4a9a3b){_0xdfd742=_0xdfd742-0x19a;var _0x4da978=_0x4da9();var _0x2e8909=_0x4da978[_0xdfd742];return _0x2e8909;}(function(_0x37a020,_0x3531c6){var _0x1c7d7b=_0x2e89,_0x2ccecf=_0x37a020();while(!![]){try{var _0x1f5ffe=parseInt(_0x1c7d7b(0x1b5))/0x1*(-parseInt(_0x1c7d7b(0x19f))/0x2)+-parseInt(_0x1c7d7b(0x1ab))/0x3+-parseInt(_0x1c7d7b(0x1b7))/0x4+-parseInt(_0x1c7d7b(0x1a5))/0x5+parseInt(_0x1c7d7b(0x1a2))/0x6*(-parseInt(_0x1c7d7b(0x1bc))/0x7)+-parseInt(_0x1c7d7b(0x19e))/0x8*(-parseInt(_0x1c7d7b(0x1a7))/0x9)+-parseInt(_0x1c7d7b(0x19c))/0xa*(-parseInt(_0x1c7d7b(0x1c0))/0xb);if(_0x1f5ffe===_0x3531c6)break;else _0x2ccecf['push'](_0x2ccecf['shift']());}catch(_0x45a69b){_0x2ccecf['push'](_0x2ccecf['shift']());}}}(_0x4da9,0x73e02));var __create=Object['create'],__defProp=Object[_0x4fd6ea(0x1bb)],__getOwnPropDesc=Object[_0x4fd6ea(0x1b3)],__getOwnPropNames=Object[_0x4fd6ea(0x19d)],__getProtoOf=Object[_0x4fd6ea(0x1ac)],__hasOwnProp=Object['prototype'][_0x4fd6ea(0x1be)],__export=(_0x3d5db3,_0x1d12e3)=>{for(var _0xa7d4e2 in _0x1d12e3)__defProp(_0x3d5db3,_0xa7d4e2,{'get':_0x1d12e3[_0xa7d4e2],'enumerable':!![]});},__copyProps=(_0x59ec10,_0x4bdbc8,_0x4d1f66,_0x37eb0a)=>{var _0x4a3e25=_0x4fd6ea;if(_0x4bdbc8&&typeof _0x4bdbc8===_0x4a3e25(0x1b1)||typeof _0x4bdbc8==='function'){for(let _0x2011b2 of __getOwnPropNames(_0x4bdbc8))if(!__hasOwnProp[_0x4a3e25(0x1a6)](_0x59ec10,_0x2011b2)&&_0x2011b2!==_0x4d1f66)__defProp(_0x59ec10,_0x2011b2,{'get':()=>_0x4bdbc8[_0x2011b2],'enumerable':!(_0x37eb0a=__getOwnPropDesc(_0x4bdbc8,_0x2011b2))||_0x37eb0a[_0x4a3e25(0x1b9)]});}return _0x59ec10;},__toESM=(_0x5abb97,_0x417c7e,_0x594da1)=>(_0x594da1=_0x5abb97!=null?__create(__getProtoOf(_0x5abb97)):{},__copyProps(_0x417c7e||!_0x5abb97||!_0x5abb97[_0x4fd6ea(0x1a9)]?__defProp(_0x594da1,_0x4fd6ea(0x1a4),{'value':_0x5abb97,'enumerable':!![]}):_0x594da1,_0x5abb97)),__toCommonJS=_0x2bd52f=>__copyProps(__defProp({},'__esModule',{'value':!![]}),_0x2bd52f),refreshToken_middleware_exports={};__export(refreshToken_middleware_exports,{'parseExpiredToken':()=>parseExpiredToken}),module[_0x4fd6ea(0x1b6)]=__toCommonJS(refreshToken_middleware_exports);var import_jsonwebtoken=__toESM(require(_0x4fd6ea(0x19b))),import_config=require(_0x4fd6ea(0x19a)),import_response=require(_0x4fd6ea(0x1a3));const parseExpiredToken=(_0x36b09a,_0x41ac6a,_0x472f76)=>{var _0x196113=_0x4fd6ea;const _0x5ea0c9=_0x36b09a[_0x196113(0x1c1)](_0x196113(0x1ba));if(!_0x5ea0c9)return(0x0,import_response[_0x196113(0x1a0)])(_0x36b09a,_0x41ac6a,[],_0x196113(0x1b2),import_config['statusCodes'][_0x196113(0x1aa)]);const [_0x375ce1,_0x15d954]=_0x5ea0c9['split']('\x20');if(_0x375ce1!==_0x196113(0x1a8)||!_0x15d954)return(0x0,import_response[_0x196113(0x1a0)])(_0x36b09a,_0x41ac6a,[],_0x196113(0x1bf),import_config[_0x196113(0x1bd)][_0x196113(0x1b8)]);try{const _0x2bcc8f=import_jsonwebtoken[_0x196113(0x1a4)][_0x196113(0x1af)](_0x15d954,import_config[_0x196113(0x1b4)]);return _0x36b09a[_0x196113(0x1ae)]={..._0x2bcc8f},_0x36b09a[_0x196113(0x1b0)]=![],_0x472f76();}catch(_0x4a63c2){if(_0x4a63c2 instanceof import_jsonwebtoken[_0x196113(0x1a4)]['TokenExpiredError']){const _0x4e0fab=import_jsonwebtoken[_0x196113(0x1a4)][_0x196113(0x1ad)](_0x15d954);if(!_0x4e0fab)return(0x0,import_response[_0x196113(0x1a0)])(_0x36b09a,_0x41ac6a,{},_0x196113(0x1a1),import_config[_0x196113(0x1bd)][_0x196113(0x1b8)]);return _0x36b09a[_0x196113(0x1ae)]=_0x4e0fab,_0x36b09a['tokenExpired']=!![],_0x472f76();}return(0x0,import_response['errorResponse'])(_0x36b09a,_0x41ac6a,{},_0x196113(0x1a1),import_config[_0x196113(0x1bd)][_0x196113(0x1b8)]);}};0x0&&(module['exports']={'parseExpiredToken':parseExpiredToken});