adc76d135a3f56059be6d297b4ae7e14c51bbb17
[motion-next.git] / server / api / userProfile / userProfile.socket.js
1 const a671_0x1afc=['update','save','length','./userProfile.events','remove'];(function(_0x2319a0,_0x1afc85){const _0x23fe9c=function(_0x59458a){while(--_0x59458a){_0x2319a0['push'](_0x2319a0['shift']());}};_0x23fe9c(++_0x1afc85);}(a671_0x1afc,0x163));const a671_0x23fe=function(_0x2319a0,_0x1afc85){_0x2319a0=_0x2319a0-0x0;let _0x23fe9c=a671_0x1afc[_0x2319a0];return _0x23fe9c;};const _0x438e78=a671_0x23fe;'use strict';const UserProfileEvents=require(_0x438e78('0x3')),events=[_0x438e78('0x1'),_0x438e78('0x4'),_0x438e78('0x0')];function createListener(_0x59458a,_0x25438a){return function(_0x3585fc){_0x25438a['emit'](_0x59458a,_0x3585fc);};}exports['register']=function(_0x5aed1a){const _0x450bd3=_0x438e78;for(let _0x47cac7=0x0,_0x207ed2=events[_0x450bd3('0x2')];_0x47cac7<_0x207ed2;_0x47cac7++){const _0xeb373a=events[_0x47cac7],_0x14e8bc=createListener('userProfile:'+_0xeb373a,_0x5aed1a);UserProfileEvents['on'](_0xeb373a,_0x14e8bc);}};