Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / userNotification / userNotification.events.js
index 5c3140f..75b026e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa715=['emit','hook','exports','events','setMaxListeners','save','update','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa715,0xcb));var _0x5a71=function(_0x23d116,_0x201fd8){_0x23d116=_0x23d116-0x0;var _0x45cc96=_0xa715[_0x23d116];return _0x45cc96;};'use strict';var EventEmitter=require(_0x5a71('0x0'));var UserNotification=require('../../mysqldb')['db']['UserNotification'];var UserNotificationEvents=new EventEmitter();UserNotificationEvents[_0x5a71('0x1')](0x0);var events={'afterCreate':_0x5a71('0x2'),'afterUpdate':_0x5a71('0x3'),'afterDestroy':_0x5a71('0x4')};function emitEvent(_0x3b8b8b){return function(_0xbc24c4,_0x3b1316,_0x2b5af6){UserNotificationEvents[_0x5a71('0x5')](_0x3b8b8b+':'+_0xbc24c4['id'],_0xbc24c4);UserNotificationEvents[_0x5a71('0x5')](_0x3b8b8b,_0xbc24c4);_0x2b5af6(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserNotification[_0x5a71('0x6')](e,emitEvent(event));}}module[_0x5a71('0x7')]=UserNotificationEvents;
\ No newline at end of file
+var _0xa331=['remove','hasOwnProperty','hook','exports','events','../../mysqldb','UserNotification','setMaxListeners','save','update'];(function(_0x20a005,_0x3267c4){var _0x318723=function(_0x4dd1e8){while(--_0x4dd1e8){_0x20a005['push'](_0x20a005['shift']());}};_0x318723(++_0x3267c4);}(_0xa331,0x162));var _0x1a33=function(_0x51dccc,_0x32ec11){_0x51dccc=_0x51dccc-0x0;var _0x44d20e=_0xa331[_0x51dccc];return _0x44d20e;};'use strict';var EventEmitter=require(_0x1a33('0x0'));var UserNotification=require(_0x1a33('0x1'))['db'][_0x1a33('0x2')];var UserNotificationEvents=new EventEmitter();UserNotificationEvents[_0x1a33('0x3')](0x0);var events={'afterCreate':_0x1a33('0x4'),'afterUpdate':_0x1a33('0x5'),'afterDestroy':_0x1a33('0x6')};function emitEvent(_0x4e43da){return function(_0xa09f41,_0x4c8597,_0x1413cc){UserNotificationEvents['emit'](_0x4e43da+':'+_0xa09f41['id'],_0xa09f41);UserNotificationEvents['emit'](_0x4e43da,_0xa09f41);_0x1413cc(null);};}for(var e in events){if(events[_0x1a33('0x7')](e)){var event=events[e];UserNotification[_0x1a33('0x8')](e,emitEvent(event));}}module[_0x1a33('0x9')]=UserNotificationEvents;
\ No newline at end of file