Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / userNotification / userNotification.events.js
index 6a141f7..ffc5031 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xac31=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','UserNotification','setMaxListeners','save','update','remove'];(function(_0x590b61,_0x4c4335){var _0x1a14dc=function(_0x2ff4f6){while(--_0x2ff4f6){_0x590b61['push'](_0x590b61['shift']());}};_0x1a14dc(++_0x4c4335);}(_0xac31,0xca));var _0x1ac3=function(_0x144e71,_0x5744eb){_0x144e71=_0x144e71-0x0;var _0x23600a=_0xac31[_0x144e71];return _0x23600a;};'use strict';var EventEmitter=require(_0x1ac3('0x0'));var UserNotification=require(_0x1ac3('0x1'))['db'][_0x1ac3('0x2')];var UserNotificationEvents=new EventEmitter();UserNotificationEvents[_0x1ac3('0x3')](0x0);var events={'afterCreate':_0x1ac3('0x4'),'afterUpdate':_0x1ac3('0x5'),'afterDestroy':_0x1ac3('0x6')};function emitEvent(_0x59b42c){return function(_0x33b5ab,_0x434b5e,_0x4dcc96){UserNotificationEvents['emit'](_0x59b42c+':'+_0x33b5ab['id'],_0x33b5ab);UserNotificationEvents[_0x1ac3('0x7')](_0x59b42c,_0x33b5ab);_0x4dcc96(null);};}for(var e in events){if(events[_0x1ac3('0x8')](e)){var event=events[e];UserNotification[_0x1ac3('0x9')](e,emitEvent(event));}}module[_0x1ac3('0xa')]=UserNotificationEvents;
\ No newline at end of file
+var _0xb821=['UserNotification','update','emit','hasOwnProperty','hook','exports','../../mysqldb'];(function(_0x4af45b,_0x15c335){var _0x1b6da3=function(_0x3ba8a6){while(--_0x3ba8a6){_0x4af45b['push'](_0x4af45b['shift']());}};_0x1b6da3(++_0x15c335);}(_0xb821,0xa7));var _0x1b82=function(_0x2258fd,_0x1e8c0f){_0x2258fd=_0x2258fd-0x0;var _0x5ad5b7=_0xb821[_0x2258fd];return _0x5ad5b7;};'use strict';var EventEmitter=require('events');var UserNotification=require(_0x1b82('0x0'))['db'][_0x1b82('0x1')];var UserNotificationEvents=new EventEmitter();UserNotificationEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0x1b82('0x2'),'afterDestroy':'remove'};function emitEvent(_0x4b1809){return function(_0x3b1d14,_0x1403ab,_0x3fadf0){UserNotificationEvents[_0x1b82('0x3')](_0x4b1809+':'+_0x3b1d14['id'],_0x3b1d14);UserNotificationEvents['emit'](_0x4b1809,_0x3b1d14);_0x3fadf0(null);};}for(var e in events){if(events[_0x1b82('0x4')](e)){var event=events[e];UserNotification[_0x1b82('0x5')](e,emitEvent(event));}}module[_0x1b82('0x6')]=UserNotificationEvents;
\ No newline at end of file