Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index a6e544b..4c3e9e7 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 _0x34a4=['../../mysqldb','SmsAccount','setMaxListeners','save','update','remove','hasOwnProperty','hook','exports','events'];(function(_0x1a22e9,_0x5a2229){var _0x5dafe9=function(_0x5b560f){while(--_0x5b560f){_0x1a22e9['push'](_0x1a22e9['shift']());}};_0x5dafe9(++_0x5a2229);}(_0x34a4,0x1c1));var _0x434a=function(_0xa1e2fd,_0x1c9305){_0xa1e2fd=_0xa1e2fd-0x0;var _0x218880=_0x34a4[_0xa1e2fd];return _0x218880;};'use strict';var EventEmitter=require(_0x434a('0x0'));var SmsAccount=require(_0x434a('0x1'))['db'][_0x434a('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x434a('0x3')](0x0);var events={'afterCreate':_0x434a('0x4'),'afterUpdate':_0x434a('0x5'),'afterDestroy':_0x434a('0x6')};function emitEvent(_0x557b11){return function(_0x435996,_0x3e27c4,_0x2445dd){SmsAccountEvents['emit'](_0x557b11+':'+_0x435996['id'],_0x435996);SmsAccountEvents['emit'](_0x557b11,_0x435996);_0x2445dd(null);};}for(var e in events){if(events[_0x434a('0x7')](e)){var event=events[e];SmsAccount[_0x434a('0x8')](e,emitEvent(event));}}module[_0x434a('0x9')]=SmsAccountEvents;
\ No newline at end of file