X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FuserNotification%2FuserNotification.socket.js;h=209e076dee8fd83ef4d9d22b41add489c0288487;hb=ed368fdfe923471c0749d5720e7df57649e4ed09;hp=df7c3679c854774c857b66971a337d5fb5d6caaf;hpb=91492537a7b94b14914d0db658458118de1ea819;p=motion2.git diff --git a/server/api/userNotification/userNotification.socket.js b/server/api/userNotification/userNotification.socket.js index df7c367..209e076 100644 --- a/server/api/userNotification/userNotification.socket.js +++ b/server/api/userNotification/userNotification.socket.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x3521=['length','./userNotification.events','update','removeListener'];(function(_0x5b8b97,_0x6b4dfa){var _0x1fdf84=function(_0x2ced4c){while(--_0x2ced4c){_0x5b8b97['push'](_0x5b8b97['shift']());}};_0x1fdf84(++_0x6b4dfa);}(_0x3521,0x1e5));var _0x1352=function(_0x75e143,_0x218710){_0x75e143=_0x75e143-0x0;var _0xdddfdb=_0x3521[_0x75e143];return _0xdddfdb;};'use strict';var UserNotificationEvents=require(_0x1352('0x0'));var events=['save','remove',_0x1352('0x1')];function createListener(_0x15fbb7,_0x2ece43){return function(_0x4b806a){_0x2ece43['emit'](_0x15fbb7,_0x4b806a);};}function removeListener(_0x36a164,_0x3e7a22){return function(){UserNotificationEvents[_0x1352('0x2')](_0x36a164,_0x3e7a22);};}exports['register']=function(_0x438701){for(var _0x156c7a=0x0,_0x4a29e1=events[_0x1352('0x3')];_0x156c7a<_0x4a29e1;_0x156c7a++){var _0xf5cce=events[_0x156c7a];var _0x2912ab=createListener('userNotification:'+_0xf5cce,_0x438701);UserNotificationEvents['on'](_0xf5cce,_0x2912ab);}}; \ No newline at end of file +var _0x1315=['save','remove','update','emit','removeListener','register','length','userNotification:'];(function(_0x271158,_0x23639f){var _0x102b72=function(_0x354e92){while(--_0x354e92){_0x271158['push'](_0x271158['shift']());}};_0x102b72(++_0x23639f);}(_0x1315,0x70));var _0x5131=function(_0x456492,_0x41ea6f){_0x456492=_0x456492-0x0;var _0x36dbb3=_0x1315[_0x456492];return _0x36dbb3;};'use strict';var UserNotificationEvents=require('./userNotification.events');var events=[_0x5131('0x0'),_0x5131('0x1'),_0x5131('0x2')];function createListener(_0x59659d,_0x402f0c){return function(_0x19054f){_0x402f0c[_0x5131('0x3')](_0x59659d,_0x19054f);};}function removeListener(_0x4a1f49,_0x33301f){return function(){UserNotificationEvents[_0x5131('0x4')](_0x4a1f49,_0x33301f);};}exports[_0x5131('0x5')]=function(_0x1a7cba){for(var _0x26538f=0x0,_0x72ac5a=events[_0x5131('0x6')];_0x26538f<_0x72ac5a;_0x26538f++){var _0x3c1877=events[_0x26538f];var _0x57f4bf=createListener(_0x5131('0x7')+_0x3c1877,_0x1a7cba);UserNotificationEvents['on'](_0x3c1877,_0x57f4bf);}}; \ No newline at end of file