Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / user / user.socket.js
index ff06b41..bb15033 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4b32=['removeListener','length'];(function(_0x2b965f,_0x4d2c0a){var _0x19b6ea=function(_0x4190c8){while(--_0x4190c8){_0x2b965f['push'](_0x2b965f['shift']());}};_0x19b6ea(++_0x4d2c0a);}(_0x4b32,0x15c));var _0x24b3=function(_0x328b9b,_0x13082a){_0x328b9b=_0x328b9b-0x0;var _0x3a2d51=_0x4b32[_0x328b9b];return _0x3a2d51;};'use strict';var UserEvents=require('./user.events');var events=['save','remove','update'];function createListener(_0xdc8976,_0x555754){return function(_0x3599b4){_0x555754['emit'](_0xdc8976,_0x3599b4);};}function removeListener(_0x3dfeb0,_0x409975){return function(){UserEvents[_0x24b3('0x0')](_0x3dfeb0,_0x409975);};}exports['register']=function(_0x803667){for(var _0xa51a3a=0x0,_0x493cee=events[_0x24b3('0x1')];_0xa51a3a<_0x493cee;_0xa51a3a++){var _0x132d74=events[_0xa51a3a];var _0x558219=createListener('user:'+_0x132d74,_0x803667);UserEvents['on'](_0x132d74,_0x558219);}};
\ No newline at end of file
+var _0x2526=['removeListener','register','length','user:','save','remove','update','emit'];(function(_0x26dda0,_0x5b58ab){var _0x41089c=function(_0x3cd04c){while(--_0x3cd04c){_0x26dda0['push'](_0x26dda0['shift']());}};_0x41089c(++_0x5b58ab);}(_0x2526,0x1dc));var _0x6252=function(_0x4d0757,_0x1cb6f1){_0x4d0757=_0x4d0757-0x0;var _0x2860dc=_0x2526[_0x4d0757];return _0x2860dc;};'use strict';var UserEvents=require('./user.events');var events=[_0x6252('0x0'),_0x6252('0x1'),_0x6252('0x2')];function createListener(_0x28d16d,_0x367735){return function(_0x38fd47){_0x367735[_0x6252('0x3')](_0x28d16d,_0x38fd47);};}function removeListener(_0x4039e9,_0x1bc90b){return function(){UserEvents[_0x6252('0x4')](_0x4039e9,_0x1bc90b);};}exports[_0x6252('0x5')]=function(_0x206c23){for(var _0x2de036=0x0,_0x3810b5=events[_0x6252('0x6')];_0x2de036<_0x3810b5;_0x2de036++){var _0x507ba1=events[_0x2de036];var _0x18837a=createListener(_0x6252('0x7')+_0x507ba1,_0x206c23);UserEvents['on'](_0x507ba1,_0x18837a);}};
\ No newline at end of file