Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / smsMessage / smsMessage.events.js
index 062d4ff..4506500 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 _0x5277=['remove','emit','hasOwnProperty','exports','events','../../mysqldb','SmsMessage','save','update'];(function(_0x51cd7a,_0xef2ad){var _0x18e075=function(_0x38c4bb){while(--_0x38c4bb){_0x51cd7a['push'](_0x51cd7a['shift']());}};_0x18e075(++_0xef2ad);}(_0x5277,0xf7));var _0x7527=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x5277[_0x122ef9];return _0x42fba0;};'use strict';var EventEmitter=require(_0x7527('0x0'));var SmsMessage=require(_0x7527('0x1'))['db'][_0x7527('0x2')];var SmsMessageEvents=new EventEmitter();SmsMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x7527('0x3'),'afterUpdate':_0x7527('0x4'),'afterDestroy':_0x7527('0x5')};function emitEvent(_0x1ba00a){return function(_0x1f260f,_0x4ca6c1,_0x4463e4){SmsMessageEvents['emit'](_0x1ba00a+':'+_0x1f260f['id'],_0x1f260f);SmsMessageEvents[_0x7527('0x6')](_0x1ba00a,_0x1f260f);_0x4463e4(null);};}for(var e in events){if(events[_0x7527('0x7')](e)){var event=events[e];SmsMessage['hook'](e,emitEvent(event));}}module[_0x7527('0x8')]=SmsMessageEvents;
\ No newline at end of file