Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / userNotification / userNotification.events.js
index ad65171..ec46b28 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x55ca=['events','../../mysqldb','update','remove','emit','hasOwnProperty','hook'];(function(_0x19159a,_0x1cb5c3){var _0xa677f4=function(_0x24bb85){while(--_0x24bb85){_0x19159a['push'](_0x19159a['shift']());}};_0xa677f4(++_0x1cb5c3);}(_0x55ca,0x126));var _0xa55c=function(_0x3afbdf,_0x9e463b){_0x3afbdf=_0x3afbdf-0x0;var _0x5b6861=_0x55ca[_0x3afbdf];return _0x5b6861;};'use strict';var EventEmitter=require(_0xa55c('0x0'));var UserNotification=require(_0xa55c('0x1'))['db']['UserNotification'];var UserNotificationEvents=new EventEmitter();UserNotificationEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xa55c('0x2'),'afterDestroy':_0xa55c('0x3')};function emitEvent(_0x5dc716){return function(_0x3b478a,_0x2db02a,_0xcb02e3){UserNotificationEvents[_0xa55c('0x4')](_0x5dc716+':'+_0x3b478a['id'],_0x3b478a);UserNotificationEvents[_0xa55c('0x4')](_0x5dc716,_0x3b478a);_0xcb02e3(null);};}for(var e in events){if(events[_0xa55c('0x5')](e)){var event=events[e];UserNotification[_0xa55c('0x6')](e,emitEvent(event));}}module['exports']=UserNotificationEvents;
\ No newline at end of file
+var _0xfdd4=['emit','hook','exports','events','../../mysqldb','UserNotification','setMaxListeners','save','update','remove'];(function(_0x214912,_0x58e9d5){var _0x486e09=function(_0x237de6){while(--_0x237de6){_0x214912['push'](_0x214912['shift']());}};_0x486e09(++_0x58e9d5);}(_0xfdd4,0x14d));var _0x4fdd=function(_0x4e623c,_0x110ef0){_0x4e623c=_0x4e623c-0x0;var _0x43fbbf=_0xfdd4[_0x4e623c];return _0x43fbbf;};'use strict';var EventEmitter=require(_0x4fdd('0x0'));var UserNotification=require(_0x4fdd('0x1'))['db'][_0x4fdd('0x2')];var UserNotificationEvents=new EventEmitter();UserNotificationEvents[_0x4fdd('0x3')](0x0);var events={'afterCreate':_0x4fdd('0x4'),'afterUpdate':_0x4fdd('0x5'),'afterDestroy':_0x4fdd('0x6')};function emitEvent(_0x538dcf){return function(_0x57cfb1,_0x251259,_0x4c96ea){UserNotificationEvents[_0x4fdd('0x7')](_0x538dcf+':'+_0x57cfb1['id'],_0x57cfb1);UserNotificationEvents[_0x4fdd('0x7')](_0x538dcf,_0x57cfb1);_0x4c96ea(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserNotification[_0x4fdd('0x8')](e,emitEvent(event));}}module[_0x4fdd('0x9')]=UserNotificationEvents;
\ No newline at end of file