Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / smsMessage / smsMessage.events.js
index 062d4ff..7d9ae2b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x355b=['emit','hasOwnProperty','hook','exports','events','SmsMessage','setMaxListeners','save','remove'];(function(_0x58144d,_0x17d58c){var _0x398f16=function(_0x3f4407){while(--_0x3f4407){_0x58144d['push'](_0x58144d['shift']());}};_0x398f16(++_0x17d58c);}(_0x355b,0x187));var _0xb355=function(_0x5080cd,_0x2751d9){_0x5080cd=_0x5080cd-0x0;var _0x27c1e7=_0x355b[_0x5080cd];return _0x27c1e7;};'use strict';var EventEmitter=require(_0xb355('0x0'));var SmsMessage=require('../../mysqldb')['db'][_0xb355('0x1')];var SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0xb355('0x2')](0x0);var events={'afterCreate':_0xb355('0x3'),'afterUpdate':'update','afterDestroy':_0xb355('0x4')};function emitEvent(_0x3d184d){return function(_0xdb3f47,_0x3d6c66,_0x3da93d){SmsMessageEvents[_0xb355('0x5')](_0x3d184d+':'+_0xdb3f47['id'],_0xdb3f47);SmsMessageEvents['emit'](_0x3d184d,_0xdb3f47);_0x3da93d(null);};}for(var e in events){if(events[_0xb355('0x6')](e)){var event=events[e];SmsMessage[_0xb355('0x7')](e,emitEvent(event));}}module[_0xb355('0x8')]=SmsMessageEvents;
\ No newline at end of file
+var _0x8fae=['hook','exports','events','../../mysqldb','SmsMessage','setMaxListeners','save','update','emit','hasOwnProperty'];(function(_0x29bdb3,_0x5c5afd){var _0x226a50=function(_0x45e99f){while(--_0x45e99f){_0x29bdb3['push'](_0x29bdb3['shift']());}};_0x226a50(++_0x5c5afd);}(_0x8fae,0x16a));var _0xe8fa=function(_0x5dbe03,_0x2941ff){_0x5dbe03=_0x5dbe03-0x0;var _0x8f51a9=_0x8fae[_0x5dbe03];return _0x8f51a9;};'use strict';var EventEmitter=require(_0xe8fa('0x0'));var SmsMessage=require(_0xe8fa('0x1'))['db'][_0xe8fa('0x2')];var SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0xe8fa('0x3')](0x0);var events={'afterCreate':_0xe8fa('0x4'),'afterUpdate':_0xe8fa('0x5'),'afterDestroy':'remove'};function emitEvent(_0x484005){return function(_0x5d5ae6,_0x3e8add,_0x1075c4){SmsMessageEvents[_0xe8fa('0x6')](_0x484005+':'+_0x5d5ae6['id'],_0x5d5ae6);SmsMessageEvents[_0xe8fa('0x6')](_0x484005,_0x5d5ae6);_0x1075c4(null);};}for(var e in events){if(events[_0xe8fa('0x7')](e)){var event=events[e];SmsMessage[_0xe8fa('0x8')](e,emitEvent(event));}}module[_0xe8fa('0x9')]=SmsMessageEvents;
\ No newline at end of file