Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index d2d593e..2dc821e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2ba2=['../../mysqldb','setMaxListeners','save','remove','emit','hook','exports','events'];(function(_0x3204b8,_0x433988){var _0x2e93ad=function(_0x5604ff){while(--_0x5604ff){_0x3204b8['push'](_0x3204b8['shift']());}};_0x2e93ad(++_0x433988);}(_0x2ba2,0x1af));var _0x22ba=function(_0x24392f,_0x15a3e5){_0x24392f=_0x24392f-0x0;var _0x591e33=_0x2ba2[_0x24392f];return _0x591e33;};'use strict';var EventEmitter=require(_0x22ba('0x0'));var SmsAccount=require(_0x22ba('0x1'))['db']['SmsAccount'];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x22ba('0x2')](0x0);var events={'afterCreate':_0x22ba('0x3'),'afterUpdate':'update','afterDestroy':_0x22ba('0x4')};function emitEvent(_0x57ad88){return function(_0x405de3,_0x4d8c32,_0x57662e){SmsAccountEvents[_0x22ba('0x5')](_0x57ad88+':'+_0x405de3['id'],_0x405de3);SmsAccountEvents[_0x22ba('0x5')](_0x57ad88,_0x405de3);_0x57662e(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount[_0x22ba('0x6')](e,emitEvent(event));}}module[_0x22ba('0x7')]=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