Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / smsMessage / smsMessage.events.js
index abd55e6..ee6a355 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x589e=['../../mysqldb','setMaxListeners','save','update','remove','exports','events'];(function(_0x3511d3,_0x4107ae){var _0x5d6321=function(_0x1a23da){while(--_0x1a23da){_0x3511d3['push'](_0x3511d3['shift']());}};_0x5d6321(++_0x4107ae);}(_0x589e,0x14f));var _0xe589=function(_0x2ac5b9,_0x45b8ca){_0x2ac5b9=_0x2ac5b9-0x0;var _0x276e62=_0x589e[_0x2ac5b9];return _0x276e62;};'use strict';var EventEmitter=require(_0xe589('0x0'));var SmsMessage=require(_0xe589('0x1'))['db']['SmsMessage'];var SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0xe589('0x2')](0x0);var events={'afterCreate':_0xe589('0x3'),'afterUpdate':_0xe589('0x4'),'afterDestroy':_0xe589('0x5')};function emitEvent(_0x31c9ca){return function(_0x415f39,_0x455eef,_0x473d49){SmsMessageEvents['emit'](_0x31c9ca+':'+_0x415f39['id'],_0x415f39);SmsMessageEvents['emit'](_0x31c9ca,_0x415f39);_0x473d49(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsMessage['hook'](e,emitEvent(event));}}module[_0xe589('0x6')]=SmsMessageEvents;
\ No newline at end of file
+var _0x97a8=['events','../../mysqldb','SmsMessage','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook'];(function(_0x595604,_0x2cc998){var _0x1466f3=function(_0x4e1d9b){while(--_0x4e1d9b){_0x595604['push'](_0x595604['shift']());}};_0x1466f3(++_0x2cc998);}(_0x97a8,0x14a));var _0x897a=function(_0x56e885,_0x27de95){_0x56e885=_0x56e885-0x0;var _0x3d0ff0=_0x97a8[_0x56e885];return _0x3d0ff0;};'use strict';var EventEmitter=require(_0x897a('0x0'));var SmsMessage=require(_0x897a('0x1'))['db'][_0x897a('0x2')];var SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0x897a('0x3')](0x0);var events={'afterCreate':_0x897a('0x4'),'afterUpdate':_0x897a('0x5'),'afterDestroy':_0x897a('0x6')};function emitEvent(_0x30e2b1){return function(_0x93f111,_0x2e8f78,_0x2d9c7c){SmsMessageEvents[_0x897a('0x7')](_0x30e2b1+':'+_0x93f111['id'],_0x93f111);SmsMessageEvents['emit'](_0x30e2b1,_0x93f111);_0x2d9c7c(null);};}for(var e in events){if(events[_0x897a('0x8')](e)){var event=events[e];SmsMessage[_0x897a('0x9')](e,emitEvent(event));}}module['exports']=SmsMessageEvents;
\ No newline at end of file