Built motion from commit (unavailable).|2.5.5
[motion2.git] / server / api / voiceExtension / voiceExtension.events.js
index c84defa..d221a76 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1a5a=['VoiceExtension','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x3a292a,_0x1c8369){var _0x1335b9=function(_0x409abc){while(--_0x409abc){_0x3a292a['push'](_0x3a292a['shift']());}};_0x1335b9(++_0x1c8369);}(_0x1a5a,0x1d5));var _0xa1a5=function(_0x1dec41,_0x4f0520){_0x1dec41=_0x1dec41-0x0;var _0x294655=_0x1a5a[_0x1dec41];return _0x294655;};'use strict';var EventEmitter=require(_0xa1a5('0x0'));var VoiceExtension=require('../../mysqldb')['db'][_0xa1a5('0x1')];var VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0xa1a5('0x2')](0x0);var events={'afterCreate':_0xa1a5('0x3'),'afterUpdate':_0xa1a5('0x4'),'afterDestroy':_0xa1a5('0x5')};function emitEvent(_0x967721){return function(_0x55965c,_0x1ea424,_0x437dda){VoiceExtensionEvents[_0xa1a5('0x6')](_0x967721+':'+_0x55965c['id'],_0x55965c);VoiceExtensionEvents['emit'](_0x967721,_0x55965c);_0x437dda(null);};}for(var e in events){if(events[_0xa1a5('0x7')](e)){var event=events[e];VoiceExtension[_0xa1a5('0x8')](e,emitEvent(event));}}module[_0xa1a5('0x9')]=VoiceExtensionEvents;
\ No newline at end of file
+var _0x9df6=['hasOwnProperty','exports','../../mysqldb','VoiceExtension','save','update','remove','emit'];(function(_0x440677,_0x19f5a5){var _0x897b85=function(_0x5e951a){while(--_0x5e951a){_0x440677['push'](_0x440677['shift']());}};_0x897b85(++_0x19f5a5);}(_0x9df6,0xe2));var _0x69df=function(_0x49ca18,_0x5e6d05){_0x49ca18=_0x49ca18-0x0;var _0x145d54=_0x9df6[_0x49ca18];return _0x145d54;};'use strict';var EventEmitter=require('events');var VoiceExtension=require(_0x69df('0x0'))['db'][_0x69df('0x1')];var VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x69df('0x2'),'afterUpdate':_0x69df('0x3'),'afterDestroy':_0x69df('0x4')};function emitEvent(_0x8ac918){return function(_0x56648b,_0x42f641,_0x14635b){VoiceExtensionEvents[_0x69df('0x5')](_0x8ac918+':'+_0x56648b['id'],_0x56648b);VoiceExtensionEvents[_0x69df('0x5')](_0x8ac918,_0x56648b);_0x14635b(null);};}for(var e in events){if(events[_0x69df('0x6')](e)){var event=events[e];VoiceExtension['hook'](e,emitEvent(event));}}module[_0x69df('0x7')]=VoiceExtensionEvents;
\ No newline at end of file