Built motion from commit b5996064.|2.6.21
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index 8c65961..403fa5f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1477=['events','../../mysqldb','SmsAccount','setMaxListeners','save','remove','emit','hasOwnProperty','hook','exports'];(function(_0x1a1afa,_0x3af1ab){var _0x467d27=function(_0x380a79){while(--_0x380a79){_0x1a1afa['push'](_0x1a1afa['shift']());}};_0x467d27(++_0x3af1ab);}(_0x1477,0xbe));var _0x7147=function(_0xd79fed,_0xff0b79){_0xd79fed=_0xd79fed-0x0;var _0x146d49=_0x1477[_0xd79fed];return _0x146d49;};'use strict';var EventEmitter=require(_0x7147('0x0'));var SmsAccount=require(_0x7147('0x1'))['db'][_0x7147('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x7147('0x3')](0x0);var events={'afterCreate':_0x7147('0x4'),'afterUpdate':'update','afterDestroy':_0x7147('0x5')};function emitEvent(_0x4b0c89){return function(_0x43ad3e,_0x274484,_0x59f7ae){SmsAccountEvents['emit'](_0x4b0c89+':'+_0x43ad3e['id'],_0x43ad3e);SmsAccountEvents[_0x7147('0x6')](_0x4b0c89,_0x43ad3e);_0x59f7ae(null);};}for(var e in events){if(events[_0x7147('0x7')](e)){var event=events[e];SmsAccount[_0x7147('0x8')](e,emitEvent(event));}}module[_0x7147('0x9')]=SmsAccountEvents;
\ No newline at end of file
+var _0x2ae9=['SmsAccount','setMaxListeners','save','emit','hook','exports','events','../../mysqldb'];(function(_0x190900,_0x4a94c5){var _0x3627fc=function(_0xf4dcfd){while(--_0xf4dcfd){_0x190900['push'](_0x190900['shift']());}};_0x3627fc(++_0x4a94c5);}(_0x2ae9,0x12e));var _0x92ae=function(_0x407b07,_0x525c69){_0x407b07=_0x407b07-0x0;var _0x2c9b12=_0x2ae9[_0x407b07];return _0x2c9b12;};'use strict';var EventEmitter=require(_0x92ae('0x0'));var SmsAccount=require(_0x92ae('0x1'))['db'][_0x92ae('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x92ae('0x3')](0x0);var events={'afterCreate':_0x92ae('0x4'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x2deb56){return function(_0x5f0ec0,_0x1686b,_0x2faf4f){SmsAccountEvents[_0x92ae('0x5')](_0x2deb56+':'+_0x5f0ec0['id'],_0x5f0ec0);SmsAccountEvents[_0x92ae('0x5')](_0x2deb56,_0x5f0ec0);_0x2faf4f(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount[_0x92ae('0x6')](e,emitEvent(event));}}module[_0x92ae('0x7')]=SmsAccountEvents;
\ No newline at end of file