Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / smsMessage / smsMessage.events.js
index 12d4f75..98de2c2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd8bc=['../../mysqldb','SmsMessage','setMaxListeners','save','emit','hasOwnProperty','hook','exports','events'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xd8bc,0x1e5));var _0xcd8b=function(_0x4b5e2f,_0x3c8bb7){_0x4b5e2f=_0x4b5e2f-0x0;var _0x560d93=_0xd8bc[_0x4b5e2f];return _0x560d93;};'use strict';var EventEmitter=require(_0xcd8b('0x0'));var SmsMessage=require(_0xcd8b('0x1'))['db'][_0xcd8b('0x2')];var SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0xcd8b('0x3')](0x0);var events={'afterCreate':_0xcd8b('0x4'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x17d47a){return function(_0x312195,_0x29e8dd,_0x244ac1){SmsMessageEvents['emit'](_0x17d47a+':'+_0x312195['id'],_0x312195);SmsMessageEvents[_0xcd8b('0x5')](_0x17d47a,_0x312195);_0x244ac1(null);};}for(var e in events){if(events[_0xcd8b('0x6')](e)){var event=events[e];SmsMessage[_0xcd8b('0x7')](e,emitEvent(event));}}module[_0xcd8b('0x8')]=SmsMessageEvents;
\ No newline at end of file
+var _0xd481=['../../mysqldb','save','update','emit','hasOwnProperty','exports'];(function(_0x1cc030,_0x34501b){var _0x4002d5=function(_0x39bae5){while(--_0x39bae5){_0x1cc030['push'](_0x1cc030['shift']());}};_0x4002d5(++_0x34501b);}(_0xd481,0x11a));var _0x1d48=function(_0x17f912,_0x1adf7c){_0x17f912=_0x17f912-0x0;var _0x243aac=_0xd481[_0x17f912];return _0x243aac;};'use strict';var EventEmitter=require('events');var SmsMessage=require(_0x1d48('0x0'))['db']['SmsMessage'];var SmsMessageEvents=new EventEmitter();SmsMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x1d48('0x1'),'afterUpdate':_0x1d48('0x2'),'afterDestroy':'remove'};function emitEvent(_0x27c0e6){return function(_0x5725b9,_0x2502e7,_0x55ef57){SmsMessageEvents[_0x1d48('0x3')](_0x27c0e6+':'+_0x5725b9['id'],_0x5725b9);SmsMessageEvents['emit'](_0x27c0e6,_0x5725b9);_0x55ef57(null);};}for(var e in events){if(events[_0x1d48('0x4')](e)){var event=events[e];SmsMessage['hook'](e,emitEvent(event));}}module[_0x1d48('0x5')]=SmsMessageEvents;
\ No newline at end of file