function _0x30e7(_0x3d76c6,_0x574558){_0x3d76c6=_0x3d76c6-0xba;const _0xef5ef8=_0xef5e();let _0x30e776=_0xef5ef8[_0x3d76c6];return _0x30e776;}const _0xc79d=_0x30e7;(function(_0x1e81d0,_0x4da3bc){const _0xc2a231=_0x30e7,_0x2f4b52=_0x1e81d0();while(!![]){try{const _0x5cf62e=parseInt(_0xc2a231(0xce))/0x1*(parseInt(_0xc2a231(0xc2))/0x2)+parseInt(_0xc2a231(0xc8))/0x3*(parseInt(_0xc2a231(0xd0))/0x4)+parseInt(_0xc2a231(0xc6))/0x5+parseInt(_0xc2a231(0xcf))/0x6+parseInt(_0xc2a231(0xc7))/0x7+parseInt(_0xc2a231(0xc9))/0x8*(-parseInt(_0xc2a231(0xc3))/0x9)+-parseInt(_0xc2a231(0xc4))/0xa;if(_0x5cf62e===_0x4da3bc)break;else _0x2f4b52['push'](_0x2f4b52['shift']());}catch(_0x2674a2){_0x2f4b52['push'](_0x2f4b52['shift']());}}}(_0xef5e,0xdaf5e));const express=require('express'),router=express[_0xc79d(0xbc)](),{verifierUtilisation,genererMessageErreur}=require('../commun/verificationUtilisation');function _0xef5e(){const _0x2ce277=['utilisations','/famille_client/:db','\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','estUtilise','\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','376048vpfKLh','723132DlOtxw','17433720RFoEuu','famille_client','983270KLBSvI','5479019oUCjYj','1014891nfLkcI','112yAeTwB','recordset','params','json','/enregistrerFamille_client/:db/:id','4defYNC','10172052xcbmJH','4yhkaaQ','body','post','status','IDfamille_client\x20=\x20\x27','Router'];_0xef5e=function(){return _0x2ce277;};return _0xef5e();}router['post'](_0xc79d(0xbe),verifyToken,Context,async(_0x23dbd0,_0x469e0e)=>{const _0xe388ae=_0xc79d;let _0x4063e7;try{_0x4063e7='\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 _0x5976dc=await executeQuery(_0x23dbd0[_0xe388ae(0xcb)]['db'],_0x4063e7);_0x469e0e[_0xe388ae(0xcc)](_0x5976dc[_0xe388ae(0xca)]);}catch(_0x87a7ac){traiterErreur(_0x4063e7,_0x87a7ac,_0x469e0e,__filename,_0x23dbd0['params']['db']);}}),router['post']('/unfamille_client/:db/:id',verifyToken,Context,async(_0x19baf2,_0x202499)=>{const _0x6b0e98=_0xc79d;let _0x21553f;try{_0x21553f=_0x6b0e98(0xbf)+_0x19baf2['params']['id']+'\x27';const _0x401a86=await executeQuery(_0x19baf2['params']['db'],_0x21553f);_0x202499[_0x6b0e98(0xcc)](_0x401a86[_0x6b0e98(0xca)][0x0]);}catch(_0x1ebcc2){traiterErreur(_0x21553f,_0x1ebcc2,_0x202499,__filename,_0x19baf2[_0x6b0e98(0xcb)]['db']);}}),router['post']('/AjouterEtRenvoyerFamille_client/:db',verifyToken,Context,async(_0xca4d86,_0x3523e7)=>{const _0xa987ef=_0xc79d;let _0x4153bb;try{_0x4153bb=_0xa987ef(0xc1);const _0x53ddc6=await executeQuery(_0xca4d86[_0xa987ef(0xcb)]['db'],_0x4153bb);_0x3523e7['status'](0xc9)['json'](_0x53ddc6['recordset'][0x0]);}catch(_0x1d2158){traiterErreur(_0x4153bb,_0x1d2158,_0x3523e7,__filename,_0xca4d86['params']['db']);}}),router['post'](_0xc79d(0xcd),verifyToken,Context,async(_0x426f5b,_0x4e2e5f)=>{const _0x56f3aa=_0xc79d;let _0x4357be,_0x4a783c={..._0x426f5b[_0x56f3aa(0xd1)]};try{_0x4357be=construireRequeteMiseAJour('famille_client',_0x4a783c,_0x56f3aa(0xbb)+_0x426f5b[_0x56f3aa(0xcb)]['id']+'\x27','IDfamille_client');const _0x328457=await executeQuery(_0x426f5b['params']['db'],_0x4357be);_0x4e2e5f['status'](0xc9)[_0x56f3aa(0xcc)]({'message':'Mise\x20à\x20jour\x20avec\x20succès'});}catch(_0x220f36){traiterErreur(_0x4357be,_0x220f36,_0x4e2e5f,__filename,_0x426f5b[_0x56f3aa(0xcb)]['db']);}}),router[_0xc79d(0xd2)]('/supprimerFamille_client/:db/:id',verifyToken,Context,async(_0x3ac66c,_0x47e983)=>{const _0x2b7063=_0xc79d;let _0x31d957;try{const _0x5c61cb=_0x3ac66c[_0x2b7063(0xcb)]['id'],_0x329c02=await verifierUtilisation(_0x3ac66c[_0x2b7063(0xcb)]['db'],_0x2b7063(0xc5),_0x5c61cb);if(_0x329c02[_0x2b7063(0xc0)])return _0x47e983[_0x2b7063(0xba)](0x190)[_0x2b7063(0xcc)]({'message':genererMessageErreur('famille_client',_0x329c02[_0x2b7063(0xbd)])});_0x31d957='DELETE\x20FROM\x20famille_client\x20WHERE\x20IDfamille_client\x20=\x20\x27'+_0x5c61cb+'\x27',await executeQuery(_0x3ac66c[_0x2b7063(0xcb)]['db'],_0x31d957),_0x47e983['status'](0xc8)['send']('Suppression\x20avec\x20succès');}catch(_0x284ea4){traiterErreur(_0x31d957,_0x284ea4,_0x47e983,__filename,_0x3ac66c[_0x2b7063(0xcb)]['db']);}}),module['exports']=router;