Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index 932bd99..2dc821e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7d84=['hasOwnProperty','events','../../mysqldb','SmsAccount','setMaxListeners','save','update','remove','emit'];(function(_0x3f4315,_0xd6ec89){var _0x5842e3=function(_0x4b12f5){while(--_0x4b12f5){_0x3f4315['push'](_0x3f4315['shift']());}};_0x5842e3(++_0xd6ec89);}(_0x7d84,0x157));var _0x47d8=function(_0x473463,_0x21da73){_0x473463=_0x473463-0x0;var _0x42f406=_0x7d84[_0x473463];return _0x42f406;};'use strict';var EventEmitter=require(_0x47d8('0x0'));var SmsAccount=require(_0x47d8('0x1'))['db'][_0x47d8('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x47d8('0x3')](0x0);var events={'afterCreate':_0x47d8('0x4'),'afterUpdate':_0x47d8('0x5'),'afterDestroy':_0x47d8('0x6')};function emitEvent(_0x39357c){return function(_0x35c7b8,_0x497d48,_0x21d260){SmsAccountEvents[_0x47d8('0x7')](_0x39357c+':'+_0x35c7b8['id'],_0x35c7b8);SmsAccountEvents[_0x47d8('0x7')](_0x39357c,_0x35c7b8);_0x21d260(null);};}for(var e in events){if(events[_0x47d8('0x8')](e)){var event=events[e];SmsAccount['hook'](e,emitEvent(event));}}module['exports']=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