Built motion from commit 19a84241.|2.5.34
[motion2.git] / server / api / voicePrefix / voicePrefix.events.js
index ba7f1a6..8e572c2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x008c=['save','remove','emit','hasOwnProperty','hook','events','../../mysqldb','VoicePrefix','setMaxListeners'];(function(_0xfbaae4,_0xbc60a5){var _0x528ecf=function(_0x3ca73d){while(--_0x3ca73d){_0xfbaae4['push'](_0xfbaae4['shift']());}};_0x528ecf(++_0xbc60a5);}(_0x008c,0x188));var _0xc008=function(_0x1c72b8,_0x104b7e){_0x1c72b8=_0x1c72b8-0x0;var _0x191114=_0x008c[_0x1c72b8];return _0x191114;};'use strict';var EventEmitter=require(_0xc008('0x0'));var VoicePrefix=require(_0xc008('0x1'))['db'][_0xc008('0x2')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0xc008('0x3')](0x0);var events={'afterCreate':_0xc008('0x4'),'afterUpdate':'update','afterDestroy':_0xc008('0x5')};function emitEvent(_0x47063f){return function(_0x10b33c,_0x163bd9,_0x1cbe76){VoicePrefixEvents[_0xc008('0x6')](_0x47063f+':'+_0x10b33c['id'],_0x10b33c);VoicePrefixEvents[_0xc008('0x6')](_0x47063f,_0x10b33c);_0x1cbe76(null);};}for(var e in events){if(events[_0xc008('0x7')](e)){var event=events[e];VoicePrefix[_0xc008('0x8')](e,emitEvent(event));}}module['exports']=VoicePrefixEvents;
\ No newline at end of file
+var _0xb200=['hook','events','VoicePrefix','save','update','remove','emit','hasOwnProperty'];(function(_0x561df9,_0x3daf73){var _0x2d6c9a=function(_0xe7a8f3){while(--_0xe7a8f3){_0x561df9['push'](_0x561df9['shift']());}};_0x2d6c9a(++_0x3daf73);}(_0xb200,0x141));var _0x0b20=function(_0x51674a,_0x77ccff){_0x51674a=_0x51674a-0x0;var _0x13fca6=_0xb200[_0x51674a];return _0x13fca6;};'use strict';var EventEmitter=require(_0x0b20('0x0'));var VoicePrefix=require('../../mysqldb')['db'][_0x0b20('0x1')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x0b20('0x2'),'afterUpdate':_0x0b20('0x3'),'afterDestroy':_0x0b20('0x4')};function emitEvent(_0x324f8e){return function(_0x2afd3d,_0x3600c1,_0x27beb5){VoicePrefixEvents[_0x0b20('0x5')](_0x324f8e+':'+_0x2afd3d['id'],_0x2afd3d);VoicePrefixEvents['emit'](_0x324f8e,_0x2afd3d);_0x27beb5(null);};}for(var e in events){if(events[_0x0b20('0x6')](e)){var event=events[e];VoicePrefix[_0x0b20('0x7')](e,emitEvent(event));}}module['exports']=VoicePrefixEvents;
\ No newline at end of file