Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / cmContact / cmContact.events.js
index 7699d87..131ee61 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1083=['save','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','setMaxListeners'];(function(_0xa594a3,_0x5d901f){var _0xb3030e=function(_0x44ad7a){while(--_0x44ad7a){_0xa594a3['push'](_0xa594a3['shift']());}};_0xb3030e(++_0x5d901f);}(_0x1083,0xcf));var _0x3108=function(_0x543823,_0x4cd77c){_0x543823=_0x543823-0x0;var _0x2f5515=_0x1083[_0x543823];return _0x2f5515;};'use strict';var EventEmitter=require(_0x3108('0x0'));var CmContact=require(_0x3108('0x1'))['db']['CmContact'];var CmContactEvents=new EventEmitter();CmContactEvents[_0x3108('0x2')](0x0);var events={'afterCreate':_0x3108('0x3'),'afterUpdate':_0x3108('0x4'),'afterDestroy':_0x3108('0x5')};function emitEvent(_0x577a19){return function(_0x35f104,_0x43c5f0,_0x5ecf09){CmContactEvents[_0x3108('0x6')](_0x577a19+':'+_0x35f104['id'],_0x35f104);CmContactEvents['emit'](_0x577a19,_0x35f104);_0x5ecf09(null);};}for(var e in events){if(events[_0x3108('0x7')](e)){var event=events[e];CmContact[_0x3108('0x8')](e,emitEvent(event));}}module[_0x3108('0x9')]=CmContactEvents;
\ No newline at end of file
+var _0x3478=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','CmContact','setMaxListeners','save','update'];(function(_0x23ec89,_0x23ca47){var _0x278aee=function(_0x356fb3){while(--_0x356fb3){_0x23ec89['push'](_0x23ec89['shift']());}};_0x278aee(++_0x23ca47);}(_0x3478,0xaa));var _0x8347=function(_0x7701ea,_0x3bd043){_0x7701ea=_0x7701ea-0x0;var _0x459df3=_0x3478[_0x7701ea];return _0x459df3;};'use strict';var EventEmitter=require(_0x8347('0x0'));var CmContact=require(_0x8347('0x1'))['db'][_0x8347('0x2')];var CmContactEvents=new EventEmitter();CmContactEvents[_0x8347('0x3')](0x0);var events={'afterCreate':_0x8347('0x4'),'afterUpdate':_0x8347('0x5'),'afterDestroy':_0x8347('0x6')};function emitEvent(_0x3adeed){return function(_0x35ae76,_0x39928b,_0x58e500){CmContactEvents['emit'](_0x3adeed+':'+_0x35ae76['id'],_0x35ae76);CmContactEvents[_0x8347('0x7')](_0x3adeed,_0x35ae76);_0x58e500(null);};}for(var e in events){if(events[_0x8347('0x8')](e)){var event=events[e];CmContact[_0x8347('0x9')](e,emitEvent(event));}}module[_0x8347('0xa')]=CmContactEvents;
\ No newline at end of file