Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / voiceExtension / voiceExtension.events.js
index 7bd05e4..c83850e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5db6=['hasOwnProperty','hook','exports','events','../../mysqldb','VoiceExtension','setMaxListeners','save','remove','emit'];(function(_0x2a98b4,_0x52ea88){var _0x3ddab1=function(_0x4fa172){while(--_0x4fa172){_0x2a98b4['push'](_0x2a98b4['shift']());}};_0x3ddab1(++_0x52ea88);}(_0x5db6,0x125));var _0x65db=function(_0x111bab,_0x271498){_0x111bab=_0x111bab-0x0;var _0x5999fa=_0x5db6[_0x111bab];return _0x5999fa;};'use strict';var EventEmitter=require(_0x65db('0x0'));var VoiceExtension=require(_0x65db('0x1'))['db'][_0x65db('0x2')];var VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0x65db('0x3')](0x0);var events={'afterCreate':_0x65db('0x4'),'afterUpdate':'update','afterDestroy':_0x65db('0x5')};function emitEvent(_0x599852){return function(_0x40c538,_0x19b778,_0x3c0fa1){VoiceExtensionEvents[_0x65db('0x6')](_0x599852+':'+_0x40c538['id'],_0x40c538);VoiceExtensionEvents[_0x65db('0x6')](_0x599852,_0x40c538);_0x3c0fa1(null);};}for(var e in events){if(events[_0x65db('0x7')](e)){var event=events[e];VoiceExtension[_0x65db('0x8')](e,emitEvent(event));}}module[_0x65db('0x9')]=VoiceExtensionEvents;
\ No newline at end of file
+var _0x88de=['hasOwnProperty','hook','exports','events','setMaxListeners','save','update','remove','emit'];(function(_0x415f7e,_0x4630b6){var _0x311ff4=function(_0x19c19d){while(--_0x19c19d){_0x415f7e['push'](_0x415f7e['shift']());}};_0x311ff4(++_0x4630b6);}(_0x88de,0x1a1));var _0xe88d=function(_0x27312d,_0x3ff92f){_0x27312d=_0x27312d-0x0;var _0x1fe40d=_0x88de[_0x27312d];return _0x1fe40d;};'use strict';var EventEmitter=require(_0xe88d('0x0'));var VoiceExtension=require('../../mysqldb')['db']['VoiceExtension'];var VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0xe88d('0x1')](0x0);var events={'afterCreate':_0xe88d('0x2'),'afterUpdate':_0xe88d('0x3'),'afterDestroy':_0xe88d('0x4')};function emitEvent(_0x3ca14f){return function(_0x1743c1,_0x30d011,_0x55672b){VoiceExtensionEvents[_0xe88d('0x5')](_0x3ca14f+':'+_0x1743c1['id'],_0x1743c1);VoiceExtensionEvents[_0xe88d('0x5')](_0x3ca14f,_0x1743c1);_0x55672b(null);};}for(var e in events){if(events[_0xe88d('0x6')](e)){var event=events[e];VoiceExtension[_0xe88d('0x7')](e,emitEvent(event));}}module[_0xe88d('0x8')]=VoiceExtensionEvents;
\ No newline at end of file