Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index 0f606ce..2dc821e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x357f=['../../mysqldb','SmsAccount','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x25dfa9,_0x12c45d){var _0x145e88=function(_0x432b74){while(--_0x432b74){_0x25dfa9['push'](_0x25dfa9['shift']());}};_0x145e88(++_0x12c45d);}(_0x357f,0x1b7));var _0xf357=function(_0x1580f4,_0x513f1f){_0x1580f4=_0x1580f4-0x0;var _0x814e6b=_0x357f[_0x1580f4];return _0x814e6b;};'use strict';var EventEmitter=require(_0xf357('0x0'));var SmsAccount=require(_0xf357('0x1'))['db'][_0xf357('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0xf357('0x3')](0x0);var events={'afterCreate':_0xf357('0x4'),'afterUpdate':_0xf357('0x5'),'afterDestroy':_0xf357('0x6')};function emitEvent(_0xcbf737){return function(_0x42429a,_0x75a349,_0x4e943c){SmsAccountEvents[_0xf357('0x7')](_0xcbf737+':'+_0x42429a['id'],_0x42429a);SmsAccountEvents['emit'](_0xcbf737,_0x42429a);_0x4e943c(null);};}for(var e in events){if(events[_0xf357('0x8')](e)){var event=events[e];SmsAccount[_0xf357('0x9')](e,emitEvent(event));}}module[_0xf357('0xa')]=SmsAccountEvents;
\ No newline at end of file
+var _0x1c78=['update','emit','exports','events','SmsAccount','setMaxListeners','save'];(function(_0x94ad78,_0x2833ac){var _0x5336d2=function(_0x2007e2){while(--_0x2007e2){_0x94ad78['push'](_0x94ad78['shift']());}};_0x5336d2(++_0x2833ac);}(_0x1c78,0x14c));var _0x81c7=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0x1c78[_0x432682];return _0x463d05;};'use strict';var EventEmitter=require(_0x81c7('0x0'));var SmsAccount=require('../../mysqldb')['db'][_0x81c7('0x1')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x81c7('0x2')](0x0);var events={'afterCreate':_0x81c7('0x3'),'afterUpdate':_0x81c7('0x4'),'afterDestroy':'remove'};function emitEvent(_0x4842cf){return function(_0x217f42,_0x5f3724,_0x18d036){SmsAccountEvents[_0x81c7('0x5')](_0x4842cf+':'+_0x217f42['id'],_0x217f42);SmsAccountEvents['emit'](_0x4842cf,_0x217f42);_0x18d036(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount['hook'](e,emitEvent(event));}}module[_0x81c7('0x6')]=SmsAccountEvents;
\ No newline at end of file