X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2Fnotification%2Fnotification.socket.js;h=81208d27c4a61a2fbd69db56ff22c29048b92a94;hb=262e7062005b3f571634c4983ecdb7eac829efe8;hp=ef8c1d3683e2ee718e769f03c4c6c86334199b7f;hpb=616b05b12f37a2d91c8e3c0e9817684f8aa283c7;p=motion2.git diff --git a/server/api/notification/notification.socket.js b/server/api/notification/notification.socket.js index ef8c1d3..81208d2 100644 --- a/server/api/notification/notification.socket.js +++ b/server/api/notification/notification.socket.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x139d=['emit','removeListener','length','./notification.events','remove'];(function(_0x21a647,_0x2a25e4){var _0x5e4a0c=function(_0x29f52e){while(--_0x29f52e){_0x21a647['push'](_0x21a647['shift']());}};_0x5e4a0c(++_0x2a25e4);}(_0x139d,0xfd));var _0xd139=function(_0x3afb47,_0x54bee0){_0x3afb47=_0x3afb47-0x0;var _0xe566d2=_0x139d[_0x3afb47];return _0xe566d2;};'use strict';var NotificationEvents=require(_0xd139('0x0'));var events=['save',_0xd139('0x1'),'update'];function createListener(_0x51ead0,_0x3cfa61){return function(_0x3547fb){_0x3cfa61[_0xd139('0x2')](_0x51ead0,_0x3547fb);};}function removeListener(_0x212cb3,_0x5be0db){return function(){NotificationEvents[_0xd139('0x3')](_0x212cb3,_0x5be0db);};}exports['register']=function(_0x2d8867){for(var _0x39aef5=0x0,_0x223aed=events[_0xd139('0x4')];_0x39aef5<_0x223aed;_0x39aef5++){var _0x4712b2=events[_0x39aef5];var _0x34de44=createListener('notification:'+_0x4712b2,_0x2d8867);NotificationEvents['on'](_0x4712b2,_0x34de44);}}; \ No newline at end of file +var _0xb001=['emit','removeListener','register','length','notification:','./notification.events','save','remove'];(function(_0x45f249,_0x2a14bd){var _0x13a6b1=function(_0x2c4240){while(--_0x2c4240){_0x45f249['push'](_0x45f249['shift']());}};_0x13a6b1(++_0x2a14bd);}(_0xb001,0x8d));var _0x1b00=function(_0x4d613c,_0x55f220){_0x4d613c=_0x4d613c-0x0;var _0x301fe3=_0xb001[_0x4d613c];return _0x301fe3;};'use strict';var NotificationEvents=require(_0x1b00('0x0'));var events=[_0x1b00('0x1'),_0x1b00('0x2'),'update'];function createListener(_0x5a1037,_0x315766){return function(_0x397f20){_0x315766[_0x1b00('0x3')](_0x5a1037,_0x397f20);};}function removeListener(_0x5255e5,_0x1e8276){return function(){NotificationEvents[_0x1b00('0x4')](_0x5255e5,_0x1e8276);};}exports[_0x1b00('0x5')]=function(_0x31764f){for(var _0x5010a0=0x0,_0x52e688=events[_0x1b00('0x6')];_0x5010a0<_0x52e688;_0x5010a0++){var _0x2034f8=events[_0x5010a0];var _0x1640c3=createListener(_0x1b00('0x7')+_0x2034f8,_0x31764f);NotificationEvents['on'](_0x2034f8,_0x1640c3);}}; \ No newline at end of file