Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index b3e1a6c..2f6426f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xed07=['exports','events','../../mysqldb','SmsAccount','setMaxListeners','save','update','remove','emit','hook'];(function(_0x2e78e9,_0x42957c){var _0x35aad4=function(_0x360fa1){while(--_0x360fa1){_0x2e78e9['push'](_0x2e78e9['shift']());}};_0x35aad4(++_0x42957c);}(_0xed07,0x169));var _0x7ed0=function(_0x476969,_0x52d8eb){_0x476969=_0x476969-0x0;var _0x5e95a2=_0xed07[_0x476969];return _0x5e95a2;};'use strict';var EventEmitter=require(_0x7ed0('0x0'));var SmsAccount=require(_0x7ed0('0x1'))['db'][_0x7ed0('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x7ed0('0x3')](0x0);var events={'afterCreate':_0x7ed0('0x4'),'afterUpdate':_0x7ed0('0x5'),'afterDestroy':_0x7ed0('0x6')};function emitEvent(_0x701fc9){return function(_0x1e3b31,_0x111559,_0x20d7b1){SmsAccountEvents['emit'](_0x701fc9+':'+_0x1e3b31['id'],_0x1e3b31);SmsAccountEvents[_0x7ed0('0x7')](_0x701fc9,_0x1e3b31);_0x20d7b1(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount[_0x7ed0('0x8')](e,emitEvent(event));}}module[_0x7ed0('0x9')]=SmsAccountEvents;
\ No newline at end of file
+var _0x3d2b=['hasOwnProperty','exports','../../mysqldb','SmsAccount','setMaxListeners','save','update','remove','emit'];(function(_0x4e198a,_0x5a6bad){var _0xb84bfe=function(_0x58d2b2){while(--_0x58d2b2){_0x4e198a['push'](_0x4e198a['shift']());}};_0xb84bfe(++_0x5a6bad);}(_0x3d2b,0xb6));var _0xb3d2=function(_0x4050aa,_0x354f87){_0x4050aa=_0x4050aa-0x0;var _0x48a894=_0x3d2b[_0x4050aa];return _0x48a894;};'use strict';var EventEmitter=require('events');var SmsAccount=require(_0xb3d2('0x0'))['db'][_0xb3d2('0x1')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0xb3d2('0x2')](0x0);var events={'afterCreate':_0xb3d2('0x3'),'afterUpdate':_0xb3d2('0x4'),'afterDestroy':_0xb3d2('0x5')};function emitEvent(_0x5c55ce){return function(_0x4026cc,_0x2804c9,_0x187fa5){SmsAccountEvents[_0xb3d2('0x6')](_0x5c55ce+':'+_0x4026cc['id'],_0x4026cc);SmsAccountEvents['emit'](_0x5c55ce,_0x4026cc);_0x187fa5(null);};}for(var e in events){if(events[_0xb3d2('0x7')](e)){var event=events[e];SmsAccount['hook'](e,emitEvent(event));}}module[_0xb3d2('0x8')]=SmsAccountEvents;
\ No newline at end of file