function _0x4aac(_0x53565d,_0x87f2a1){_0x53565d=_0x53565d-0xd5;const _0x7f838d=_0x7f83();let _0x4aac02=_0x7f838d[_0x53565d];return _0x4aac02;}const _0x1c92ca=_0x4aac;function _0x7f83(){const _0x3ebac1=['famille_client','/supprimerFamille_client/:db/:id','post','params','DELETE\x20FROM\x20famille_client\x20WHERE\x20IDfamille_client\x20=\x20\x27','678LtgrSy','4333FvxeHY','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20*\x0a\x20\x20\x20\x20\x20\x20FROM\x20famille_client\x0a\x20\x20\x20\x20\x20\x20WHERE\x20IDfamille_client\x20=\x20\x27','recordset','/enregistrerFamille_client/:db/:id','estUtilise','status','1354MmNkoV','send','2118576PzUVyC','8341640Sgeoiq','/famille_client/:db','26552EoKcTq','body','7MqIgpU','126orhuNc','/AjouterEtRenvoyerFamille_client/:db','json','1373175qtqWdA','Mise\x20à\x20jour\x20avec\x20succès','2304540HHiwJf'];_0x7f83=function(){return _0x3ebac1;};return _0x7f83();}(function(_0x5d359c,_0x2bc8ed){const _0x4c51a5=_0x4aac,_0xe9eaa=_0x5d359c();while(!![]){try{const _0x5a539e=-parseInt(_0x4c51a5(0xe6))/0x1*(parseInt(_0x4c51a5(0xdf))/0x2)+-parseInt(_0x4c51a5(0xe7))/0x3*(-parseInt(_0x4c51a5(0xe4))/0x4)+parseInt(_0x4c51a5(0xea))/0x5+parseInt(_0x4c51a5(0xd8))/0x6*(-parseInt(_0x4c51a5(0xd9))/0x7)+parseInt(_0x4c51a5(0xe1))/0x8+parseInt(_0x4c51a5(0xec))/0x9+-parseInt(_0x4c51a5(0xe2))/0xa;if(_0x5a539e===_0x2bc8ed)break;else _0xe9eaa['push'](_0xe9eaa['shift']());}catch(_0x183797){_0xe9eaa['push'](_0xe9eaa['shift']());}}}(_0x7f83,0x28657));const express=require('express'),router=express['Router'](),{verifierUtilisation,genererMessageErreur}=require('../commun/verificationUtilisation');router[_0x1c92ca(0xd5)](_0x1c92ca(0xe3),verifyToken,Context,async(_0x3cf0cc,_0x3b449f)=>{const _0xfb5928=_0x1c92ca;let _0x378f70;try{_0x378f70='\x0a\x20\x20\x20\x20SELECT\x20IDfamille_client\x20ndoc,\x20IDfamille_client,\x20libelle\x0a\x20\x20\x20\x20FROM\x20famille_client\x0a\x20\x20\x20\x20order\x20by\x20IDfamille_client;\x0a\x20\x20\x20\x20';const _0x110b43=await executeQuery(_0x3cf0cc[_0xfb5928(0xd6)]['db'],_0x378f70);_0x3b449f[_0xfb5928(0xe9)](_0x110b43[_0xfb5928(0xdb)]);}catch(_0x2ca813){traiterErreur(_0x378f70,_0x2ca813,_0x3b449f,__filename,_0x3cf0cc['params']['db']);}}),router['post']('/unfamille_client/:db/:id',verifyToken,Context,async(_0x348faf,_0x74e308)=>{const _0x41302c=_0x1c92ca;let _0x3ae1c2;try{_0x3ae1c2=_0x41302c(0xda)+_0x348faf[_0x41302c(0xd6)]['id']+'\x27';const _0x435e8e=await executeQuery(_0x348faf[_0x41302c(0xd6)]['db'],_0x3ae1c2);_0x74e308['json'](_0x435e8e[_0x41302c(0xdb)][0x0]);}catch(_0x4a04e5){traiterErreur(_0x3ae1c2,_0x4a04e5,_0x74e308,__filename,_0x348faf[_0x41302c(0xd6)]['db']);}}),router['post'](_0x1c92ca(0xe8),verifyToken,Context,async(_0x1ca19c,_0x167615)=>{const _0x439ebd=_0x1c92ca;let _0x28fb4c;try{_0x28fb4c='\x0a\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20famille_client\x20(IDfamille_client)\x0a\x20\x20\x20\x20\x20\x20SELECT\x20ISNULL(MAX(IDfamille_client),\x200)\x20+\x201\x20FROM\x20famille_client;\x0a\x20\x20\x20\x20\x20\x20SELECT\x20TOP\x201\x20*\x0a\x20\x20\x20\x20\x20\x20FROM\x20famille_client\x0a\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20IDfamille_client\x20DESC';const _0x59dc95=await executeQuery(_0x1ca19c['params']['db'],_0x28fb4c);_0x167615[_0x439ebd(0xde)](0xc9)['json'](_0x59dc95['recordset'][0x0]);}catch(_0x49d3f5){traiterErreur(_0x28fb4c,_0x49d3f5,_0x167615,__filename,_0x1ca19c[_0x439ebd(0xd6)]['db']);}}),router[_0x1c92ca(0xd5)](_0x1c92ca(0xdc),verifyToken,Context,async(_0x5db00a,_0x1a7f31)=>{const _0x58d3e7=_0x1c92ca;let _0x4ab78a,_0x6c9ddc={..._0x5db00a[_0x58d3e7(0xe5)]};try{_0x4ab78a=construireRequeteMiseAJour('famille_client',_0x6c9ddc,'IDfamille_client\x20=\x20\x27'+_0x5db00a[_0x58d3e7(0xd6)]['id']+'\x27','IDfamille_client');const _0x5d7d71=await executeQuery(_0x5db00a[_0x58d3e7(0xd6)]['db'],_0x4ab78a);_0x1a7f31['status'](0xc9)[_0x58d3e7(0xe9)]({'message':_0x58d3e7(0xeb)});}catch(_0x273c9c){traiterErreur(_0x4ab78a,_0x273c9c,_0x1a7f31,__filename,_0x5db00a['params']['db']);}}),router[_0x1c92ca(0xd5)](_0x1c92ca(0xee),verifyToken,Context,async(_0x32f808,_0x1b7f83)=>{const _0x589c0e=_0x1c92ca;let _0x2a997d;try{const _0x46d350=_0x32f808[_0x589c0e(0xd6)]['id'],_0x458e5a=await verifierUtilisation(_0x32f808[_0x589c0e(0xd6)]['db'],_0x589c0e(0xed),_0x46d350);if(_0x458e5a[_0x589c0e(0xdd)])return _0x1b7f83[_0x589c0e(0xde)](0x190)['json']({'message':genererMessageErreur(_0x589c0e(0xed),_0x458e5a['utilisations'])});_0x2a997d=_0x589c0e(0xd7)+_0x46d350+'\x27',await executeQuery(_0x32f808['params']['db'],_0x2a997d),_0x1b7f83[_0x589c0e(0xde)](0xc8)[_0x589c0e(0xe0)]('Suppression\x20avec\x20succès');}catch(_0x56aa62){traiterErreur(_0x2a997d,_0x56aa62,_0x1b7f83,__filename,_0x32f808['params']['db']);}}),module['exports']=router;