Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index 4c9ca0f..7e12210 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb6ff=['hook','exports','events','SmsAccount','setMaxListeners','save'];(function(_0x565ed7,_0x398228){var _0x183ad7=function(_0x5a43d7){while(--_0x5a43d7){_0x565ed7['push'](_0x565ed7['shift']());}};_0x183ad7(++_0x398228);}(_0xb6ff,0x116));var _0xfb6f=function(_0x4a599b,_0x1d2125){_0x4a599b=_0x4a599b-0x0;var _0x2d53d3=_0xb6ff[_0x4a599b];return _0x2d53d3;};'use strict';var EventEmitter=require(_0xfb6f('0x0'));var SmsAccount=require('../../mysqldb')['db'][_0xfb6f('0x1')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0xfb6f('0x2')](0x0);var events={'afterCreate':_0xfb6f('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x1c7cf0){return function(_0x19c1af,_0x1524b2,_0x5778a8){SmsAccountEvents['emit'](_0x1c7cf0+':'+_0x19c1af['id'],_0x19c1af);SmsAccountEvents['emit'](_0x1c7cf0,_0x19c1af);_0x5778a8(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount[_0xfb6f('0x4')](e,emitEvent(event));}}module[_0xfb6f('0x5')]=SmsAccountEvents;
\ No newline at end of file
+var _0x4868=['SmsAccount','setMaxListeners','save','update','remove','emit','hook','exports','events','../../mysqldb'];(function(_0x483e1c,_0x165e7c){var _0x2c82f5=function(_0x50395a){while(--_0x50395a){_0x483e1c['push'](_0x483e1c['shift']());}};_0x2c82f5(++_0x165e7c);}(_0x4868,0xee));var _0x8486=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x4868[_0x14add3];return _0x4a174f;};'use strict';var EventEmitter=require(_0x8486('0x0'));var SmsAccount=require(_0x8486('0x1'))['db'][_0x8486('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x8486('0x3')](0x0);var events={'afterCreate':_0x8486('0x4'),'afterUpdate':_0x8486('0x5'),'afterDestroy':_0x8486('0x6')};function emitEvent(_0x1a450e){return function(_0x3037cd,_0x3ae355,_0x23f8d8){SmsAccountEvents[_0x8486('0x7')](_0x1a450e+':'+_0x3037cd['id'],_0x3037cd);SmsAccountEvents['emit'](_0x1a450e,_0x3037cd);_0x23f8d8(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount[_0x8486('0x8')](e,emitEvent(event));}}module[_0x8486('0x9')]=SmsAccountEvents;
\ No newline at end of file