Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / smsMessage / smsMessage.events.js
index 6d69436..98de2c2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3dab=['SmsMessage','setMaxListeners','remove','emit','hasOwnProperty','hook'];(function(_0x2effe9,_0x489165){var _0x550fcc=function(_0x3b22f1){while(--_0x3b22f1){_0x2effe9['push'](_0x2effe9['shift']());}};_0x550fcc(++_0x489165);}(_0x3dab,0x198));var _0xb3da=function(_0x494b65,_0x9e3d6d){_0x494b65=_0x494b65-0x0;var _0x93c9d8=_0x3dab[_0x494b65];return _0x93c9d8;};'use strict';var EventEmitter=require('events');var SmsMessage=require('../../mysqldb')['db'][_0xb3da('0x0')];var SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0xb3da('0x1')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0xb3da('0x2')};function emitEvent(_0x2da595){return function(_0x5cecc3,_0x4b6582,_0x813f9c){SmsMessageEvents[_0xb3da('0x3')](_0x2da595+':'+_0x5cecc3['id'],_0x5cecc3);SmsMessageEvents[_0xb3da('0x3')](_0x2da595,_0x5cecc3);_0x813f9c(null);};}for(var e in events){if(events[_0xb3da('0x4')](e)){var event=events[e];SmsMessage[_0xb3da('0x5')](e,emitEvent(event));}}module['exports']=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