Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index 8c65961..370b9b2 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 _0xf26a=['exports','events','SmsAccount','setMaxListeners','update','remove','emit','hook'];(function(_0x29d915,_0x54a040){var _0x160f86=function(_0x237dfa){while(--_0x237dfa){_0x29d915['push'](_0x29d915['shift']());}};_0x160f86(++_0x54a040);}(_0xf26a,0x1d9));var _0xaf26=function(_0x13f798,_0xe56623){_0x13f798=_0x13f798-0x0;var _0x21844e=_0xf26a[_0x13f798];return _0x21844e;};'use strict';var EventEmitter=require(_0xaf26('0x0'));var SmsAccount=require('../../mysqldb')['db'][_0xaf26('0x1')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0xaf26('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xaf26('0x3'),'afterDestroy':_0xaf26('0x4')};function emitEvent(_0x29d627){return function(_0x285383,_0x1b9c5a,_0x378c04){SmsAccountEvents[_0xaf26('0x5')](_0x29d627+':'+_0x285383['id'],_0x285383);SmsAccountEvents[_0xaf26('0x5')](_0x29d627,_0x285383);_0x378c04(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount[_0xaf26('0x6')](e,emitEvent(event));}}module[_0xaf26('0x7')]=SmsAccountEvents;
\ No newline at end of file