function _0x26e5(){const _0x2f9b26=['5630XvrMnc','Router','/statut_opportunite/:db','recordset','status','Suppression\x20avec\x20succès','4429400HwOutf','params','14DcgtCg','estUtilise','DELETE\x20FROM\x20statut_opportunite\x20WHERE\x20id_statut_opportunite\x20=\x20\x27','id_statut_opportunite','exports','statut_opportunite','utilisations','1798318tBrcHv','\x0a\x20\x20\x20\x20SELECT\x20id_statut_opportunite\x20ndoc,\x20id_statut_opportunite,\x20libelle\x0a\x20\x20\x20\x20FROM\x20statut_opportunite\x0a\x20\x20\x20\x20order\x20by\x20id_statut_opportunite;\x20\x0a\x20\x20\x20\x20','4wjtlrx','4653ebPvto','996335OTAqaE','39312vMwpEi','express','408504RDIUbK','../commun/verificationUtilisation','1NPRClc','json','post','/unstatut_opportunite/:db/:id','6730200UfjKPY','\x0a\x20\x20\x20\x20\x20SELECT\x20*\x0a\x20\x20\x20\x20\x20FROM\x20statut_opportunite\x0a\x20\x20\x20\x20\x20WHERE\x20id_statut_opportunite\x20=\x20\x27','/enregistrerStatut_opportunite/:db/:id'];_0x26e5=function(){return _0x2f9b26;};return _0x26e5();}const _0x4b398e=_0x1a2d;(function(_0x3a4dd2,_0x27d582){const _0x566894=_0x1a2d,_0x4003e4=_0x3a4dd2();while(!![]){try{const _0x6fca12=parseInt(_0x566894(0x1dc))/0x1*(-parseInt(_0x566894(0x1f2))/0x2)+parseInt(_0x566894(0x1d8))/0x3+parseInt(_0x566894(0x1f4))/0x4*(parseInt(_0x566894(0x1d7))/0x5)+-parseInt(_0x566894(0x1da))/0x6*(-parseInt(_0x566894(0x1eb))/0x7)+parseInt(_0x566894(0x1e9))/0x8+parseInt(_0x566894(0x1e0))/0x9+-parseInt(_0x566894(0x1e3))/0xa*(parseInt(_0x566894(0x1d6))/0xb);if(_0x6fca12===_0x27d582)break;else _0x4003e4['push'](_0x4003e4['shift']());}catch(_0x545a4d){_0x4003e4['push'](_0x4003e4['shift']());}}}(_0x26e5,0x7d2c2));const express=require(_0x4b398e(0x1d9)),router=express[_0x4b398e(0x1e4)](),{verifierUtilisation,genererMessageErreur}=require(_0x4b398e(0x1db));function _0x1a2d(_0x53abcd,_0xe2588f){_0x53abcd=_0x53abcd-0x1d6;const _0x26e593=_0x26e5();let _0x1a2d5f=_0x26e593[_0x53abcd];return _0x1a2d5f;}router[_0x4b398e(0x1de)](_0x4b398e(0x1e5),verifyToken,Context,async(_0x1b8ba4,_0x239d8e)=>{const _0x4b5fa2=_0x4b398e;let _0x39cefa;try{_0x39cefa=_0x4b5fa2(0x1f3);const _0x3f643d=await executeQuery(_0x1b8ba4[_0x4b5fa2(0x1ea)]['db'],_0x39cefa);_0x239d8e['json'](_0x3f643d['recordset']);}catch(_0x33dd63){traiterErreur(_0x39cefa,_0x33dd63,_0x239d8e,__filename,_0x1b8ba4['params']['db']);}}),router['post'](_0x4b398e(0x1df),verifyToken,Context,async(_0x48f52c,_0x4845e3)=>{const _0x1539a5=_0x4b398e;let _0x27c197;try{_0x27c197=_0x1539a5(0x1e1)+_0x48f52c['params']['id']+'\x27;';const _0x407c92=await executeQuery(_0x48f52c['params']['db'],_0x27c197);_0x4845e3[_0x1539a5(0x1dd)](_0x407c92[_0x1539a5(0x1e6)][0x0]);}catch(_0x1a01cb){traiterErreur(_0x27c197,_0x1a01cb,_0x4845e3,__filename,_0x48f52c[_0x1539a5(0x1ea)]['db']);}}),router[_0x4b398e(0x1de)]('/AjouterEtRenvoyerstatut_opportunite/:db',verifyToken,Context,async(_0x2d8e1d,_0x3554ef)=>{const _0x408893=_0x4b398e;let _0x44b114;try{_0x44b114='\x0a\x20\x20\x20\x20\x20INSERT\x20INTO\x20statut_opportunite\x20(id_statut_opportunite)\x0a\x20\x20\x20\x20\x20SELECT\x20ISNULL(MAX(id_statut_opportunite),\x200)\x20+\x201\x20\x0a\x20\x20\x20\x20\x20FROM\x20statut_opportunite;\x0a\x0a\x20\x20\x20\x20\x20SELECT\x20TOP\x201\x20*\x20\x0a\x20\x20\x20\x20\x20FROM\x20statut_opportunite\x20\x0a\x20\x20\x20\x20\x20ORDER\x20BY\x20id_statut_opportunite\x20DESC;';const _0xad0e69=await executeQuery(_0x2d8e1d[_0x408893(0x1ea)]['db'],_0x44b114);_0x3554ef[_0x408893(0x1e7)](0xc9)['json'](_0xad0e69[_0x408893(0x1e6)][0x0]);}catch(_0x735b9c){traiterErreur(_0x44b114,_0x735b9c,_0x3554ef,__filename,_0x2d8e1d['params']['db']);}}),router[_0x4b398e(0x1de)](_0x4b398e(0x1e2),verifyToken,Context,async(_0x332d78,_0x52b3d8)=>{const _0x5768ac=_0x4b398e;let _0x151d4b,_0x2fab8d={..._0x332d78['body']};try{_0x151d4b=construireRequeteMiseAJour(_0x5768ac(0x1f0),_0x2fab8d,'id_statut_opportunite\x20=\x20\x27'+_0x332d78[_0x5768ac(0x1ea)]['id']+'\x27',_0x5768ac(0x1ee)),await executeQuery(_0x332d78['params']['db'],_0x151d4b),_0x52b3d8[_0x5768ac(0x1e7)](0xc9)[_0x5768ac(0x1dd)]({'message':'Mise\x20à\x20jour\x20avec\x20succès'});}catch(_0x39fc51){traiterErreur(_0x151d4b,_0x39fc51,_0x52b3d8,__filename,_0x332d78['params']['db']);}}),router[_0x4b398e(0x1de)]('/supprimerStatut_opportunite/:db/:id',verifyToken,Context,async(_0x3e084d,_0x3f17c0)=>{const _0x1676a0=_0x4b398e;let _0x3bebfc;try{const _0xfdb83f=_0x3e084d['params']['id'],_0x38d776=await verifierUtilisation(_0x3e084d['params']['db'],_0x1676a0(0x1f0),_0xfdb83f);if(_0x38d776[_0x1676a0(0x1ec)])return _0x3f17c0[_0x1676a0(0x1e7)](0x190)['json']({'message':genererMessageErreur('statut_opportunite',_0x38d776[_0x1676a0(0x1f1)])});_0x3bebfc=_0x1676a0(0x1ed)+_0xfdb83f+'\x27',await executeQuery(_0x3e084d[_0x1676a0(0x1ea)]['db'],_0x3bebfc),_0x3f17c0[_0x1676a0(0x1e7)](0xc8)['send'](_0x1676a0(0x1e8));}catch(_0x2d50fc){traiterErreur(_0x3bebfc,_0x2d50fc,_0x3f17c0,__filename,_0x3e084d[_0x1676a0(0x1ea)]['db']);}}),module[_0x4b398e(0x1ef)]=router;