Built motion from commit b51cdcb3f2cb46634587ce1d55ea1b8f32dacea6. Version 3.0.0...
[motion-next.git] / server / api / notification / notification.events.js
index a2e95e4..01990eb 100644 (file)
@@ -1 +1 @@
-const a462_0xf261=['save','events','setMaxListeners','exports','remove','Notification','update','undefined','addHook'];(function(_0xee8949,_0xf261b5){const _0xf6080b=function(_0x133131){while(--_0x133131){_0xee8949['push'](_0xee8949['shift']());}};_0xf6080b(++_0xf261b5);}(a462_0xf261,0x7c));const a462_0xf608=function(_0xee8949,_0xf261b5){_0xee8949=_0xee8949-0x0;let _0xf6080b=a462_0xf261[_0xee8949];return _0xf6080b;};const _0x5e0d43=a462_0xf608;'use strict';const EventEmitter=require(_0x5e0d43('0x3')),Notification=require('../../mysqldb')['db'][_0x5e0d43('0x7')],NotificationEvents=new EventEmitter();NotificationEvents[_0x5e0d43('0x4')](0x0);const events={'afterCreate':_0x5e0d43('0x2'),'afterUpdate':_0x5e0d43('0x8'),'afterDestroy':_0x5e0d43('0x6')};function emitEvent(_0x133131){return function(_0x12f50a){NotificationEvents['emit'](_0x133131+':'+_0x12f50a['id'],_0x12f50a),NotificationEvents['emit'](_0x133131,_0x12f50a);};}for(const e in events){if(typeof events[e]!==_0x5e0d43('0x0')){const event=events[e];Notification[_0x5e0d43('0x1')](e,emitEvent(event));}}module[_0x5e0d43('0x5')]=NotificationEvents;
\ No newline at end of file
+const a462_0x30e8=['exports','remove','undefined','Notification','addHook','events','save','emit','../../mysqldb'];(function(_0x2e0b5a,_0x30e8d5){const _0x24d54a=function(_0x3a72ec){while(--_0x3a72ec){_0x2e0b5a['push'](_0x2e0b5a['shift']());}};_0x24d54a(++_0x30e8d5);}(a462_0x30e8,0x85));const a462_0x24d5=function(_0x2e0b5a,_0x30e8d5){_0x2e0b5a=_0x2e0b5a-0x0;let _0x24d54a=a462_0x30e8[_0x2e0b5a];return _0x24d54a;};const _0x59b5cd=a462_0x24d5;'use strict';const EventEmitter=require(_0x59b5cd('0x7')),Notification=require(_0x59b5cd('0x1'))['db'][_0x59b5cd('0x5')],NotificationEvents=new EventEmitter();NotificationEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x59b5cd('0x8'),'afterUpdate':'update','afterDestroy':_0x59b5cd('0x3')};function emitEvent(_0x3a72ec){return function(_0x22d5e5){const _0x20b0fe=a462_0x24d5;NotificationEvents[_0x20b0fe('0x0')](_0x3a72ec+':'+_0x22d5e5['id'],_0x22d5e5),NotificationEvents[_0x20b0fe('0x0')](_0x3a72ec,_0x22d5e5);};}for(const e in events){if(typeof events[e]!==_0x59b5cd('0x4')){const event=events[e];Notification[_0x59b5cd('0x6')](e,emitEvent(event));}}module[_0x59b5cd('0x2')]=NotificationEvents;
\ No newline at end of file