Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index 130fd40..17c2444 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb650=['hasOwnProperty','exports','events','../../mysqldb','SmsAccount','setMaxListeners','save','update','remove','emit'];(function(_0x26ffb1,_0x1adfdc){var _0x24ac6b=function(_0xe1bba){while(--_0xe1bba){_0x26ffb1['push'](_0x26ffb1['shift']());}};_0x24ac6b(++_0x1adfdc);}(_0xb650,0x70));var _0x0b65=function(_0x62a9c1,_0x1e5f1e){_0x62a9c1=_0x62a9c1-0x0;var _0x30e7f1=_0xb650[_0x62a9c1];return _0x30e7f1;};'use strict';var EventEmitter=require(_0x0b65('0x0'));var SmsAccount=require(_0x0b65('0x1'))['db'][_0x0b65('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x0b65('0x3')](0x0);var events={'afterCreate':_0x0b65('0x4'),'afterUpdate':_0x0b65('0x5'),'afterDestroy':_0x0b65('0x6')};function emitEvent(_0x115407){return function(_0x4009dc,_0x49c1ee,_0x5376e6){SmsAccountEvents[_0x0b65('0x7')](_0x115407+':'+_0x4009dc['id'],_0x4009dc);SmsAccountEvents[_0x0b65('0x7')](_0x115407,_0x4009dc);_0x5376e6(null);};}for(var e in events){if(events[_0x0b65('0x8')](e)){var event=events[e];SmsAccount['hook'](e,emitEvent(event));}}module[_0x0b65('0x9')]=SmsAccountEvents;
\ No newline at end of file
+var _0x208c=['events','SmsAccount','setMaxListeners','save','emit','hasOwnProperty','hook','exports'];(function(_0x2c1cf7,_0x3923eb){var _0x4c13eb=function(_0x4e08dc){while(--_0x4e08dc){_0x2c1cf7['push'](_0x2c1cf7['shift']());}};_0x4c13eb(++_0x3923eb);}(_0x208c,0x140));var _0xc208=function(_0x2af593,_0x451bde){_0x2af593=_0x2af593-0x0;var _0x2b3ce4=_0x208c[_0x2af593];return _0x2b3ce4;};'use strict';var EventEmitter=require(_0xc208('0x0'));var SmsAccount=require('../../mysqldb')['db'][_0xc208('0x1')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0xc208('0x2')](0x0);var events={'afterCreate':_0xc208('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x50fb6d){return function(_0x57a447,_0x10ca51,_0x7f9fc5){SmsAccountEvents[_0xc208('0x4')](_0x50fb6d+':'+_0x57a447['id'],_0x57a447);SmsAccountEvents[_0xc208('0x4')](_0x50fb6d,_0x57a447);_0x7f9fc5(null);};}for(var e in events){if(events[_0xc208('0x5')](e)){var event=events[e];SmsAccount[_0xc208('0x6')](e,emitEvent(event));}}module[_0xc208('0x7')]=SmsAccountEvents;
\ No newline at end of file