Built motion from commit 5b761a7b.|2.5.36
[motion2.git] / server / api / voicePrefix / voicePrefix.events.js
index d82c0f2..1d848e3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb33c=['events','setMaxListeners','save','remove','hasOwnProperty','exports'];(function(_0x5a64bb,_0x40c4ab){var _0x459df3=function(_0x56bd3f){while(--_0x56bd3f){_0x5a64bb['push'](_0x5a64bb['shift']());}};_0x459df3(++_0x40c4ab);}(_0xb33c,0x186));var _0xcb33=function(_0x196ced,_0x10e948){_0x196ced=_0x196ced-0x0;var _0x522c8d=_0xb33c[_0x196ced];return _0x522c8d;};'use strict';var EventEmitter=require(_0xcb33('0x0'));var VoicePrefix=require('../../mysqldb')['db']['VoicePrefix'];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0xcb33('0x1')](0x0);var events={'afterCreate':_0xcb33('0x2'),'afterUpdate':'update','afterDestroy':_0xcb33('0x3')};function emitEvent(_0xde88dd){return function(_0x2cd7b2,_0x936ae1,_0x1c77c4){VoicePrefixEvents['emit'](_0xde88dd+':'+_0x2cd7b2['id'],_0x2cd7b2);VoicePrefixEvents['emit'](_0xde88dd,_0x2cd7b2);_0x1c77c4(null);};}for(var e in events){if(events[_0xcb33('0x4')](e)){var event=events[e];VoicePrefix['hook'](e,emitEvent(event));}}module[_0xcb33('0x5')]=VoicePrefixEvents;
\ No newline at end of file
+var _0xdcaa=['emit','hook','exports','events','../../mysqldb','setMaxListeners','save','update'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xdcaa,0x93));var _0xadca=function(_0x5613e8,_0x208429){_0x5613e8=_0x5613e8-0x0;var _0x438a78=_0xdcaa[_0x5613e8];return _0x438a78;};'use strict';var EventEmitter=require(_0xadca('0x0'));var VoicePrefix=require(_0xadca('0x1'))['db']['VoicePrefix'];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0xadca('0x2')](0x0);var events={'afterCreate':_0xadca('0x3'),'afterUpdate':_0xadca('0x4'),'afterDestroy':'remove'};function emitEvent(_0x31493e){return function(_0x5e79eb,_0x143891,_0x1dc307){VoicePrefixEvents[_0xadca('0x5')](_0x31493e+':'+_0x5e79eb['id'],_0x5e79eb);VoicePrefixEvents[_0xadca('0x5')](_0x31493e,_0x5e79eb);_0x1dc307(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoicePrefix[_0xadca('0x6')](e,emitEvent(event));}}module[_0xadca('0x7')]=VoicePrefixEvents;
\ No newline at end of file