Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index a6e544b..a4a6812 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5a78=['hasOwnProperty','hook','exports','events','../../mysqldb','SmsAccount','setMaxListeners','save','update','remove','emit'];(function(_0x368016,_0x2d4188){var _0x44c875=function(_0x5a5d17){while(--_0x5a5d17){_0x368016['push'](_0x368016['shift']());}};_0x44c875(++_0x2d4188);}(_0x5a78,0x1b0));var _0x85a7=function(_0x421ef4,_0x4fc826){_0x421ef4=_0x421ef4-0x0;var _0x12e29b=_0x5a78[_0x421ef4];return _0x12e29b;};'use strict';var EventEmitter=require(_0x85a7('0x0'));var SmsAccount=require(_0x85a7('0x1'))['db'][_0x85a7('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x85a7('0x3')](0x0);var events={'afterCreate':_0x85a7('0x4'),'afterUpdate':_0x85a7('0x5'),'afterDestroy':_0x85a7('0x6')};function emitEvent(_0x5d1f4e){return function(_0x5e784d,_0x5a5704,_0x422883){SmsAccountEvents[_0x85a7('0x7')](_0x5d1f4e+':'+_0x5e784d['id'],_0x5e784d);SmsAccountEvents[_0x85a7('0x7')](_0x5d1f4e,_0x5e784d);_0x422883(null);};}for(var e in events){if(events[_0x85a7('0x8')](e)){var event=events[e];SmsAccount[_0x85a7('0x9')](e,emitEvent(event));}}module[_0x85a7('0xa')]=SmsAccountEvents;
\ No newline at end of file
+var _0x0409=['hasOwnProperty','hook','events','../../mysqldb','SmsAccount','setMaxListeners','save','emit'];(function(_0x2f4069,_0x74eb6c){var _0x4e5d90=function(_0x56fedf){while(--_0x56fedf){_0x2f4069['push'](_0x2f4069['shift']());}};_0x4e5d90(++_0x74eb6c);}(_0x0409,0x15a));var _0x9040=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x0409[_0x501510];return _0x1e6ee5;};'use strict';var EventEmitter=require(_0x9040('0x0'));var SmsAccount=require(_0x9040('0x1'))['db'][_0x9040('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x9040('0x3')](0x0);var events={'afterCreate':_0x9040('0x4'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x326c20){return function(_0x4989e1,_0x5307c9,_0x4769d0){SmsAccountEvents[_0x9040('0x5')](_0x326c20+':'+_0x4989e1['id'],_0x4989e1);SmsAccountEvents['emit'](_0x326c20,_0x4989e1);_0x4769d0(null);};}for(var e in events){if(events[_0x9040('0x6')](e)){var event=events[e];SmsAccount[_0x9040('0x7')](e,emitEvent(event));}}module['exports']=SmsAccountEvents;
\ No newline at end of file