Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / voicePrefix / voicePrefix.events.js
index 6f72e65..b14bd9b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf1d3=['setMaxListeners','remove','emit','hasOwnProperty','hook','events','../../mysqldb','VoicePrefix'];(function(_0x5ebe0d,_0x17aae2){var _0x27c9fc=function(_0x2fb576){while(--_0x2fb576){_0x5ebe0d['push'](_0x5ebe0d['shift']());}};_0x27c9fc(++_0x17aae2);}(_0xf1d3,0x10d));var _0x3f1d=function(_0x11e93d,_0x25c29c){_0x11e93d=_0x11e93d-0x0;var _0x583fcc=_0xf1d3[_0x11e93d];return _0x583fcc;};'use strict';var EventEmitter=require(_0x3f1d('0x0'));var VoicePrefix=require(_0x3f1d('0x1'))['db'][_0x3f1d('0x2')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x3f1d('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x3f1d('0x4')};function emitEvent(_0x5ef150){return function(_0xb2ea5b,_0xf4b5d5,_0x2ac14e){VoicePrefixEvents[_0x3f1d('0x5')](_0x5ef150+':'+_0xb2ea5b['id'],_0xb2ea5b);VoicePrefixEvents['emit'](_0x5ef150,_0xb2ea5b);_0x2ac14e(null);};}for(var e in events){if(events[_0x3f1d('0x6')](e)){var event=events[e];VoicePrefix[_0x3f1d('0x7')](e,emitEvent(event));}}module['exports']=VoicePrefixEvents;
\ No newline at end of file
+var _0xca34=['emit','hasOwnProperty','exports','events','../../mysqldb','VoicePrefix','setMaxListeners','update','remove'];(function(_0x3ddbc6,_0x137eac){var _0x478f4b=function(_0x46fa2e){while(--_0x46fa2e){_0x3ddbc6['push'](_0x3ddbc6['shift']());}};_0x478f4b(++_0x137eac);}(_0xca34,0x123));var _0x4ca3=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0xca34[_0x501510];return _0x1e6ee5;};'use strict';var EventEmitter=require(_0x4ca3('0x0'));var VoicePrefix=require(_0x4ca3('0x1'))['db'][_0x4ca3('0x2')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x4ca3('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x4ca3('0x4'),'afterDestroy':_0x4ca3('0x5')};function emitEvent(_0x40a52e){return function(_0x4d26f7,_0x30bae1,_0x1e306b){VoicePrefixEvents[_0x4ca3('0x6')](_0x40a52e+':'+_0x4d26f7['id'],_0x4d26f7);VoicePrefixEvents[_0x4ca3('0x6')](_0x40a52e,_0x4d26f7);_0x1e306b(null);};}for(var e in events){if(events[_0x4ca3('0x7')](e)){var event=events[e];VoicePrefix['hook'](e,emitEvent(event));}}module[_0x4ca3('0x8')]=VoicePrefixEvents;
\ No newline at end of file