Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / userNotification / userNotification.events.js
index 94f13fe..ec46b28 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc95e=['save','update','remove','emit','hasOwnProperty','exports','events','../../mysqldb','setMaxListeners'];(function(_0x57590e,_0x44252f){var _0x3b05df=function(_0x2a0d2d){while(--_0x2a0d2d){_0x57590e['push'](_0x57590e['shift']());}};_0x3b05df(++_0x44252f);}(_0xc95e,0x9f));var _0xec95=function(_0x4694b2,_0x43c850){_0x4694b2=_0x4694b2-0x0;var _0x1ff744=_0xc95e[_0x4694b2];return _0x1ff744;};'use strict';var EventEmitter=require(_0xec95('0x0'));var UserNotification=require(_0xec95('0x1'))['db']['UserNotification'];var UserNotificationEvents=new EventEmitter();UserNotificationEvents[_0xec95('0x2')](0x0);var events={'afterCreate':_0xec95('0x3'),'afterUpdate':_0xec95('0x4'),'afterDestroy':_0xec95('0x5')};function emitEvent(_0x33a3ba){return function(_0x1ef5c4,_0x2f5cb0,_0x35866a){UserNotificationEvents[_0xec95('0x6')](_0x33a3ba+':'+_0x1ef5c4['id'],_0x1ef5c4);UserNotificationEvents[_0xec95('0x6')](_0x33a3ba,_0x1ef5c4);_0x35866a(null);};}for(var e in events){if(events[_0xec95('0x7')](e)){var event=events[e];UserNotification['hook'](e,emitEvent(event));}}module[_0xec95('0x8')]=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