X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FuserNotification%2FuserNotification.socket.js;h=193c7e810aac98763f59b8f3a8a87073078d2a1e;hb=f1d1468b3a09c62a6041ebd552725da73d637879;hp=28b220c5414b832d3aee70d73f224dd18f780a3b;hpb=d2fd33d6b242a53e18c7b82fe692ff8c6c0965a8;p=motion2.git diff --git a/server/api/userNotification/userNotification.socket.js b/server/api/userNotification/userNotification.socket.js index 28b220c..193c7e8 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 _0xfb79=['./userNotification.events','remove','emit','removeListener','length','userNotification:'];(function(_0x315d32,_0x33485b){var _0x3ea98d=function(_0x4111ee){while(--_0x4111ee){_0x315d32['push'](_0x315d32['shift']());}};_0x3ea98d(++_0x33485b);}(_0xfb79,0x13e));var _0x9fb7=function(_0x23285f,_0x5529ce){_0x23285f=_0x23285f-0x0;var _0x1a5a34=_0xfb79[_0x23285f];return _0x1a5a34;};'use strict';var UserNotificationEvents=require(_0x9fb7('0x0'));var events=['save',_0x9fb7('0x1'),'update'];function createListener(_0x90e683,_0x466d83){return function(_0x53f158){_0x466d83[_0x9fb7('0x2')](_0x90e683,_0x53f158);};}function removeListener(_0xa332f3,_0x1b30b1){return function(){UserNotificationEvents[_0x9fb7('0x3')](_0xa332f3,_0x1b30b1);};}exports['register']=function(_0x282f15){for(var _0xc3e066=0x0,_0x28bf14=events[_0x9fb7('0x4')];_0xc3e066<_0x28bf14;_0xc3e066++){var _0x35ad21=events[_0xc3e066];var _0x14699f=createListener(_0x9fb7('0x5')+_0x35ad21,_0x282f15);UserNotificationEvents['on'](_0x35ad21,_0x14699f);}}; \ No newline at end of file +var _0x7e39=['emit','removeListener','register','userNotification:','./userNotification.events','update'];(function(_0x5a8d3a,_0x2bf6bb){var _0x2d9eac=function(_0x2b952b){while(--_0x2b952b){_0x5a8d3a['push'](_0x5a8d3a['shift']());}};_0x2d9eac(++_0x2bf6bb);}(_0x7e39,0x7c));var _0x97e3=function(_0x5846c3,_0x5c7784){_0x5846c3=_0x5846c3-0x0;var _0x4575fc=_0x7e39[_0x5846c3];return _0x4575fc;};'use strict';var UserNotificationEvents=require(_0x97e3('0x0'));var events=['save','remove',_0x97e3('0x1')];function createListener(_0x24f408,_0x14c7da){return function(_0x312b30){_0x14c7da[_0x97e3('0x2')](_0x24f408,_0x312b30);};}function removeListener(_0x502ace,_0x56882a){return function(){UserNotificationEvents[_0x97e3('0x3')](_0x502ace,_0x56882a);};}exports[_0x97e3('0x4')]=function(_0x545d64){for(var _0x2dd745=0x0,_0x42fa01=events['length'];_0x2dd745<_0x42fa01;_0x2dd745++){var _0x118e00=events[_0x2dd745];var _0x20baca=createListener(_0x97e3('0x5')+_0x118e00,_0x545d64);UserNotificationEvents['on'](_0x118e00,_0x20baca);}}; \ No newline at end of file