Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / voicePrefix / voicePrefix.events.js
index b14bd9b..bb40517 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0x8ca5=['save','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoicePrefix','setMaxListeners'];(function(_0x1064b8,_0x32e8ac){var _0x4a53bd=function(_0xe43f81){while(--_0xe43f81){_0x1064b8['push'](_0x1064b8['shift']());}};_0x4a53bd(++_0x32e8ac);}(_0x8ca5,0x1a9));var _0x58ca=function(_0x5b3ef0,_0x2889e3){_0x5b3ef0=_0x5b3ef0-0x0;var _0x45923b=_0x8ca5[_0x5b3ef0];return _0x45923b;};'use strict';var EventEmitter=require(_0x58ca('0x0'));var VoicePrefix=require(_0x58ca('0x1'))['db'][_0x58ca('0x2')];var VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x58ca('0x3')](0x0);var events={'afterCreate':_0x58ca('0x4'),'afterUpdate':_0x58ca('0x5'),'afterDestroy':_0x58ca('0x6')};function emitEvent(_0x139c1b){return function(_0x5eae6c,_0x52a9c3,_0x2235e9){VoicePrefixEvents[_0x58ca('0x7')](_0x139c1b+':'+_0x5eae6c['id'],_0x5eae6c);VoicePrefixEvents[_0x58ca('0x7')](_0x139c1b,_0x5eae6c);_0x2235e9(null);};}for(var e in events){if(events[_0x58ca('0x8')](e)){var event=events[e];VoicePrefix[_0x58ca('0x9')](e,emitEvent(event));}}module[_0x58ca('0xa')]=VoicePrefixEvents;
\ No newline at end of file