Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / api / voicePrefix / voicePrefix.events.js
index 84c4bbe..36744b2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6a61=['exports','events','../../mysqldb','VoicePrefix','save','emit','hasOwnProperty'];(function(_0x5a70a2,_0xf1e7f9){var _0x1c88fd=function(_0x2b36f3){while(--_0x2b36f3){_0x5a70a2['push'](_0x5a70a2['shift']());}};_0x1c88fd(++_0xf1e7f9);}(_0x6a61,0x1cf));var _0x16a6=function(_0xabf4c4,_0x5d9f24){_0xabf4c4=_0xabf4c4-0x0;var _0x7c4f5a=_0x6a61[_0xabf4c4];return _0x7c4f5a;};'use strict';var EventEmitter=require(_0x16a6('0x0'));var VoicePrefix=require(_0x16a6('0x1'))['db'][_0x16a6('0x2')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x16a6('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x159bf2){return function(_0xc0ccc4,_0x515a2a,_0x4173aa){VoicePrefixEvents[_0x16a6('0x4')](_0x159bf2+':'+_0xc0ccc4['id'],_0xc0ccc4);VoicePrefixEvents[_0x16a6('0x4')](_0x159bf2,_0xc0ccc4);_0x4173aa(null);};}for(var e in events){if(events[_0x16a6('0x5')](e)){var event=events[e];VoicePrefix['hook'](e,emitEvent(event));}}module[_0x16a6('0x6')]=VoicePrefixEvents;
\ No newline at end of file
+var _0x2128=['VoicePrefix','setMaxListeners','save','update','remove','emit','hasOwnProperty','exports','events','../../mysqldb'];(function(_0x58b5d7,_0x79ca8a){var _0x817269=function(_0x58dd9f){while(--_0x58dd9f){_0x58b5d7['push'](_0x58b5d7['shift']());}};_0x817269(++_0x79ca8a);}(_0x2128,0x102));var _0x8212=function(_0x2389ff,_0x2d54db){_0x2389ff=_0x2389ff-0x0;var _0x5b9ed7=_0x2128[_0x2389ff];return _0x5b9ed7;};'use strict';var EventEmitter=require(_0x8212('0x0'));var VoicePrefix=require(_0x8212('0x1'))['db'][_0x8212('0x2')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x8212('0x3')](0x0);var events={'afterCreate':_0x8212('0x4'),'afterUpdate':_0x8212('0x5'),'afterDestroy':_0x8212('0x6')};function emitEvent(_0x1c7cd1){return function(_0x4c69ca,_0x5c7388,_0x5bff80){VoicePrefixEvents['emit'](_0x1c7cd1+':'+_0x4c69ca['id'],_0x4c69ca);VoicePrefixEvents[_0x8212('0x7')](_0x1c7cd1,_0x4c69ca);_0x5bff80(null);};}for(var e in events){if(events[_0x8212('0x8')](e)){var event=events[e];VoicePrefix['hook'](e,emitEvent(event));}}module[_0x8212('0x9')]=VoicePrefixEvents;
\ No newline at end of file