Built motion from commit (unavailable).|2.5.20
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index 43b543b..b0184b9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd3d5=['SmsAccount','setMaxListeners','update','remove','emit','hook','exports','events','../../mysqldb'];(function(_0x13ea00,_0x12f610){var _0x1f7347=function(_0x34ae63){while(--_0x34ae63){_0x13ea00['push'](_0x13ea00['shift']());}};_0x1f7347(++_0x12f610);}(_0xd3d5,0xdf));var _0x5d3d=function(_0xb31ff3,_0x28aee8){_0xb31ff3=_0xb31ff3-0x0;var _0x569a70=_0xd3d5[_0xb31ff3];return _0x569a70;};'use strict';var EventEmitter=require(_0x5d3d('0x0'));var SmsAccount=require(_0x5d3d('0x1'))['db'][_0x5d3d('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x5d3d('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x5d3d('0x4'),'afterDestroy':_0x5d3d('0x5')};function emitEvent(_0x29b6ac){return function(_0x373b7d,_0xc1232c,_0x48263c){SmsAccountEvents[_0x5d3d('0x6')](_0x29b6ac+':'+_0x373b7d['id'],_0x373b7d);SmsAccountEvents[_0x5d3d('0x6')](_0x29b6ac,_0x373b7d);_0x48263c(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount[_0x5d3d('0x7')](e,emitEvent(event));}}module[_0x5d3d('0x8')]=SmsAccountEvents;
\ No newline at end of file
+var _0x41be=['update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','SmsAccount','setMaxListeners','save'];(function(_0x4243a3,_0x447337){var _0x1b2a33=function(_0x6a8200){while(--_0x6a8200){_0x4243a3['push'](_0x4243a3['shift']());}};_0x1b2a33(++_0x447337);}(_0x41be,0x17c));var _0xe41b=function(_0xc8a02c,_0x4809d3){_0xc8a02c=_0xc8a02c-0x0;var _0x3d89da=_0x41be[_0xc8a02c];return _0x3d89da;};'use strict';var EventEmitter=require(_0xe41b('0x0'));var SmsAccount=require(_0xe41b('0x1'))['db'][_0xe41b('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0xe41b('0x3')](0x0);var events={'afterCreate':_0xe41b('0x4'),'afterUpdate':_0xe41b('0x5'),'afterDestroy':_0xe41b('0x6')};function emitEvent(_0x4cdc4a){return function(_0x345c93,_0x18c489,_0x4f1960){SmsAccountEvents[_0xe41b('0x7')](_0x4cdc4a+':'+_0x345c93['id'],_0x345c93);SmsAccountEvents[_0xe41b('0x7')](_0x4cdc4a,_0x345c93);_0x4f1960(null);};}for(var e in events){if(events[_0xe41b('0x8')](e)){var event=events[e];SmsAccount[_0xe41b('0x9')](e,emitEvent(event));}}module[_0xe41b('0xa')]=SmsAccountEvents;
\ No newline at end of file