Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / api / smsAccount / smsAccount.events.js
index 3c0bfac..04b7859 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf485=['update','remove','emit','hasOwnProperty','hook','events','../../mysqldb','SmsAccount','setMaxListeners','save'];(function(_0x432384,_0x15b54b){var _0x413635=function(_0x16d345){while(--_0x16d345){_0x432384['push'](_0x432384['shift']());}};_0x413635(++_0x15b54b);}(_0xf485,0x113));var _0x5f48=function(_0x244c39,_0x2858db){_0x244c39=_0x244c39-0x0;var _0x50d3ac=_0xf485[_0x244c39];return _0x50d3ac;};'use strict';var EventEmitter=require(_0x5f48('0x0'));var SmsAccount=require(_0x5f48('0x1'))['db'][_0x5f48('0x2')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x5f48('0x3')](0x0);var events={'afterCreate':_0x5f48('0x4'),'afterUpdate':_0x5f48('0x5'),'afterDestroy':_0x5f48('0x6')};function emitEvent(_0x1976a4){return function(_0x23e5c4,_0x13860a,_0x28470e){SmsAccountEvents[_0x5f48('0x7')](_0x1976a4+':'+_0x23e5c4['id'],_0x23e5c4);SmsAccountEvents['emit'](_0x1976a4,_0x23e5c4);_0x28470e(null);};}for(var e in events){if(events[_0x5f48('0x8')](e)){var event=events[e];SmsAccount[_0x5f48('0x9')](e,emitEvent(event));}}module['exports']=SmsAccountEvents;
\ No newline at end of file
+var _0x2958=['SmsAccount','setMaxListeners','save','emit','exports','events'];(function(_0x2cd8d0,_0x5ddefb){var _0x49a221=function(_0x6abeb2){while(--_0x6abeb2){_0x2cd8d0['push'](_0x2cd8d0['shift']());}};_0x49a221(++_0x5ddefb);}(_0x2958,0x18b));var _0x8295=function(_0x1fb8e0,_0x554df4){_0x1fb8e0=_0x1fb8e0-0x0;var _0x254203=_0x2958[_0x1fb8e0];return _0x254203;};'use strict';var EventEmitter=require(_0x8295('0x0'));var SmsAccount=require('../../mysqldb')['db'][_0x8295('0x1')];var SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x8295('0x2')](0x0);var events={'afterCreate':_0x8295('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x13bb7c){return function(_0x9fbed3,_0xd62413,_0x33086e){SmsAccountEvents[_0x8295('0x4')](_0x13bb7c+':'+_0x9fbed3['id'],_0x9fbed3);SmsAccountEvents[_0x8295('0x4')](_0x13bb7c,_0x9fbed3);_0x33086e(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsAccount['hook'](e,emitEvent(event));}}module[_0x8295('0x5')]=SmsAccountEvents;
\ No newline at end of file