Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / voicePrefix / voicePrefix.events.js
index 8664d2f..f5e9402 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4b7a=['hasOwnProperty','events','../../mysqldb','VoicePrefix','setMaxListeners','save','update','remove','emit'];(function(_0x1d7c10,_0x3b5ed7){var _0xb76ec7=function(_0x520c1c){while(--_0x520c1c){_0x1d7c10['push'](_0x1d7c10['shift']());}};_0xb76ec7(++_0x3b5ed7);}(_0x4b7a,0x7f));var _0xa4b7=function(_0x1952ac,_0x5c7345){_0x1952ac=_0x1952ac-0x0;var _0x15abe5=_0x4b7a[_0x1952ac];return _0x15abe5;};'use strict';var EventEmitter=require(_0xa4b7('0x0'));var VoicePrefix=require(_0xa4b7('0x1'))['db'][_0xa4b7('0x2')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0xa4b7('0x3')](0x0);var events={'afterCreate':_0xa4b7('0x4'),'afterUpdate':_0xa4b7('0x5'),'afterDestroy':_0xa4b7('0x6')};function emitEvent(_0x3483b2){return function(_0x149e40,_0x4dcd1b,_0x5878bb){VoicePrefixEvents[_0xa4b7('0x7')](_0x3483b2+':'+_0x149e40['id'],_0x149e40);VoicePrefixEvents[_0xa4b7('0x7')](_0x3483b2,_0x149e40);_0x5878bb(null);};}for(var e in events){if(events[_0xa4b7('0x8')](e)){var event=events[e];VoicePrefix['hook'](e,emitEvent(event));}}module['exports']=VoicePrefixEvents;
\ No newline at end of file
+var _0x44e8=['emit','hasOwnProperty','hook','../../mysqldb','VoicePrefix','save','update'];(function(_0xc1adf1,_0x1ec932){var _0x12a7c9=function(_0x33446f){while(--_0x33446f){_0xc1adf1['push'](_0xc1adf1['shift']());}};_0x12a7c9(++_0x1ec932);}(_0x44e8,0x15a));var _0x844e=function(_0x55a912,_0xc705c1){_0x55a912=_0x55a912-0x0;var _0x30f199=_0x44e8[_0x55a912];return _0x30f199;};'use strict';var EventEmitter=require('events');var VoicePrefix=require(_0x844e('0x0'))['db'][_0x844e('0x1')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x844e('0x2'),'afterUpdate':_0x844e('0x3'),'afterDestroy':'remove'};function emitEvent(_0x3fdbdd){return function(_0x546e4f,_0x395231,_0x12ded0){VoicePrefixEvents[_0x844e('0x4')](_0x3fdbdd+':'+_0x546e4f['id'],_0x546e4f);VoicePrefixEvents[_0x844e('0x4')](_0x3fdbdd,_0x546e4f);_0x12ded0(null);};}for(var e in events){if(events[_0x844e('0x5')](e)){var event=events[e];VoicePrefix[_0x844e('0x6')](e,emitEvent(event));}}module['exports']=VoicePrefixEvents;
\ No newline at end of file