Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / voiceExtension / voiceExtension.events.js
index 2f849e6..2651ce1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x74c2=['../../mysqldb','VoiceExtension','setMaxListeners','save','update','remove','emit','hasOwnProperty'];(function(_0x2f71ce,_0x1499dc){var _0x5c6e40=function(_0x508275){while(--_0x508275){_0x2f71ce['push'](_0x2f71ce['shift']());}};_0x5c6e40(++_0x1499dc);}(_0x74c2,0x120));var _0x274c=function(_0x3624d9,_0x3d608c){_0x3624d9=_0x3624d9-0x0;var _0x16cb1d=_0x74c2[_0x3624d9];return _0x16cb1d;};'use strict';var EventEmitter=require('events');var VoiceExtension=require(_0x274c('0x0'))['db'][_0x274c('0x1')];var VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0x274c('0x2')](0x0);var events={'afterCreate':_0x274c('0x3'),'afterUpdate':_0x274c('0x4'),'afterDestroy':_0x274c('0x5')};function emitEvent(_0x2adf06){return function(_0x1eb622,_0x2d6319,_0x26742b){VoiceExtensionEvents[_0x274c('0x6')](_0x2adf06+':'+_0x1eb622['id'],_0x1eb622);VoiceExtensionEvents[_0x274c('0x6')](_0x2adf06,_0x1eb622);_0x26742b(null);};}for(var e in events){if(events[_0x274c('0x7')](e)){var event=events[e];VoiceExtension['hook'](e,emitEvent(event));}}module['exports']=VoiceExtensionEvents;
\ No newline at end of file
+var _0x3ec2=['update','remove','emit','hook','exports','events','../../mysqldb','VoiceExtension','setMaxListeners','save'];(function(_0x4e1211,_0x3babe2){var _0x2ffc28=function(_0x4febf4){while(--_0x4febf4){_0x4e1211['push'](_0x4e1211['shift']());}};_0x2ffc28(++_0x3babe2);}(_0x3ec2,0x177));var _0x23ec=function(_0x244a5f,_0x3652c3){_0x244a5f=_0x244a5f-0x0;var _0x115943=_0x3ec2[_0x244a5f];return _0x115943;};'use strict';var EventEmitter=require(_0x23ec('0x0'));var VoiceExtension=require(_0x23ec('0x1'))['db'][_0x23ec('0x2')];var VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0x23ec('0x3')](0x0);var events={'afterCreate':_0x23ec('0x4'),'afterUpdate':_0x23ec('0x5'),'afterDestroy':_0x23ec('0x6')};function emitEvent(_0x4d26cc){return function(_0xa4be59,_0x67f63d,_0x1ad767){VoiceExtensionEvents[_0x23ec('0x7')](_0x4d26cc+':'+_0xa4be59['id'],_0xa4be59);VoiceExtensionEvents[_0x23ec('0x7')](_0x4d26cc,_0xa4be59);_0x1ad767(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceExtension[_0x23ec('0x8')](e,emitEvent(event));}}module[_0x23ec('0x9')]=VoiceExtensionEvents;
\ No newline at end of file