'use strict';var _0x211d08=_0x401a;(function(_0x3592e5,_0x4b413d){var _0x665d2f=_0x401a,_0x2fd2ca=_0x3592e5();while(!![]){try{var _0x58ad9f=-parseInt(_0x665d2f(0xf0))/0x1*(-parseInt(_0x665d2f(0xfc))/0x2)+-parseInt(_0x665d2f(0xf4))/0x3*(-parseInt(_0x665d2f(0xf6))/0x4)+parseInt(_0x665d2f(0xec))/0x5*(parseInt(_0x665d2f(0xea))/0x6)+-parseInt(_0x665d2f(0xfa))/0x7+-parseInt(_0x665d2f(0xdb))/0x8*(-parseInt(_0x665d2f(0xf9))/0x9)+parseInt(_0x665d2f(0xe8))/0xa*(parseInt(_0x665d2f(0xeb))/0xb)+-parseInt(_0x665d2f(0xed))/0xc;if(_0x58ad9f===_0x4b413d)break;else _0x2fd2ca['push'](_0x2fd2ca['shift']());}catch(_0x29e679){_0x2fd2ca['push'](_0x2fd2ca['shift']());}}}(_0x3377,0xe0555));var __defProp=Object['defineProperty'],__getOwnPropDesc=Object[_0x211d08(0xf8)],__getOwnPropNames=Object[_0x211d08(0xdc)],__hasOwnProp=Object[_0x211d08(0xd9)][_0x211d08(0xf3)],__export=(_0x7624c4,_0x367e00)=>{for(var _0x5e7f93 in _0x367e00)__defProp(_0x7624c4,_0x5e7f93,{'get':_0x367e00[_0x5e7f93],'enumerable':!![]});},__copyProps=(_0x466fb9,_0x3046fc,_0x757381,_0xc0de7d)=>{var _0x2e61db=_0x211d08;if(_0x3046fc&&typeof _0x3046fc===_0x2e61db(0xe2)||typeof _0x3046fc===_0x2e61db(0xfd)){for(let _0x1a410e of __getOwnPropNames(_0x3046fc))if(!__hasOwnProp['call'](_0x466fb9,_0x1a410e)&&_0x1a410e!==_0x757381)__defProp(_0x466fb9,_0x1a410e,{'get':()=>_0x3046fc[_0x1a410e],'enumerable':!(_0xc0de7d=__getOwnPropDesc(_0x3046fc,_0x1a410e))||_0xc0de7d[_0x2e61db(0xe0)]});}return _0x466fb9;},__toCommonJS=_0x2b3201=>__copyProps(__defProp({},_0x211d08(0xfb),{'value':!![]}),_0x2b3201),jwt_middleware_exports={};__export(jwt_middleware_exports,{'authenticateToken':()=>authenticateToken}),module['exports']=__toCommonJS(jwt_middleware_exports);var import_jsonwebtoken=require(_0x211d08(0xde)),import_config=require(_0x211d08(0xf2)),import_response=require(_0x211d08(0xdf));const authenticateToken=(_0x5c541d,_0x438e29,_0xfc070e)=>{var _0x56219e=_0x211d08;try{const _0x15ff9e=import_config[_0x56219e(0xe1)],_0x24cc2b=_0x5c541d[_0x56219e(0xe5)](_0x56219e(0xee));if(!_0x24cc2b)return(0x0,import_response[_0x56219e(0xe6)])(_0x5c541d,_0x438e29,[],_0x56219e(0xe3),import_config[_0x56219e(0xf5)]['access_denied']);const [_0x27a8f6,_0x54f885]=_0x24cc2b[_0x56219e(0xd8)]('\x20');if(_0x27a8f6!==_0x56219e(0xe7)||!_0x54f885)return(0x0,import_response[_0x56219e(0xe6)])(_0x5c541d,_0x438e29,[],_0x56219e(0xf1),import_config['statusCodes'][_0x56219e(0xda)]);const _0x1ae8b1=(0x0,import_jsonwebtoken['verify'])(_0x54f885,_0x15ff9e);_0x5c541d[_0x56219e(0xef)]=_0x1ae8b1,_0xfc070e();}catch(_0x18bb1a){const _0x2b2493=_0x18bb1a instanceof Error?_0x18bb1a[_0x56219e(0xdd)]:'Invalid\x20jwt\x20token.';return(0x0,import_response[_0x56219e(0xe6)])(_0x5c541d,_0x438e29,{},_0x2b2493[_0x56219e(0xe4)](/jwt/g,_0x56219e(0xe9)),import_config[_0x56219e(0xf5)][_0x56219e(0xda)]);}};function _0x401a(_0x3d8009,_0x2e3d2c){_0x3d8009=_0x3d8009-0xd8;var _0x33772a=_0x3377();var _0x401ae1=_0x33772a[_0x3d8009];return _0x401ae1;}function _0x3377(){var _0x5f1d26=['30TTHqhL','Authorization\x20token','6INVBAH','3705779wuaaoA','982385lKBktn','25418880ULnLfI','Authorization','user','1TBNQGL','Invalid\x20authorization\x20token\x20format.','../../config','hasOwnProperty','622218ORoCbh','statusCodes','32wezIYD','exports','getOwnPropertyDescriptor','18FdmWci','9054934MwzGgq','__esModule','390890BfxqAL','function','split','prototype','unauthorized','5075336hkJBWh','getOwnPropertyNames','message','jsonwebtoken','../utilities/response','enumerable','jwtSecret','object','Access\x20denied.\x20No\x20authorization\x20token\x20provided.','replace','header','errorResponse','Bearer'];_0x3377=function(){return _0x5f1d26;};return _0x3377();}0x0&&(module[_0x211d08(0xf7)]={'authenticateToken':authenticateToken});