Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / cmContact / cmContact.events.js
index 8a6c533..71ee0ac 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaf0f=['remove','emit','hasOwnProperty','hook','exports','CmContact','save'];(function(_0x2a3653,_0x2b5804){var _0x2d9e61=function(_0x40ef96){while(--_0x40ef96){_0x2a3653['push'](_0x2a3653['shift']());}};_0x2d9e61(++_0x2b5804);}(_0xaf0f,0x116));var _0xfaf0=function(_0x1eaaf1,_0x1dc9cd){_0x1eaaf1=_0x1eaaf1-0x0;var _0x352a3e=_0xaf0f[_0x1eaaf1];return _0x352a3e;};'use strict';var EventEmitter=require('events');var CmContact=require('../../mysqldb')['db'][_0xfaf0('0x0')];var CmContactEvents=new EventEmitter();CmContactEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xfaf0('0x1'),'afterUpdate':'update','afterDestroy':_0xfaf0('0x2')};function emitEvent(_0x544a22){return function(_0x25b3f2,_0x18434b,_0x1aa919){CmContactEvents[_0xfaf0('0x3')](_0x544a22+':'+_0x25b3f2['id'],_0x25b3f2);CmContactEvents[_0xfaf0('0x3')](_0x544a22,_0x25b3f2);_0x1aa919(null);};}for(var e in events){if(events[_0xfaf0('0x4')](e)){var event=events[e];CmContact[_0xfaf0('0x5')](e,emitEvent(event));}}module[_0xfaf0('0x6')]=CmContactEvents;
\ No newline at end of file
+var _0xcabe=['setMaxListeners','save','remove','emit','hasOwnProperty','exports','events'];(function(_0xf67198,_0x1faa1b){var _0x436886=function(_0x891da4){while(--_0x891da4){_0xf67198['push'](_0xf67198['shift']());}};_0x436886(++_0x1faa1b);}(_0xcabe,0x1cd));var _0xecab=function(_0x1f9ca5,_0x226efc){_0x1f9ca5=_0x1f9ca5-0x0;var _0x1a9040=_0xcabe[_0x1f9ca5];return _0x1a9040;};'use strict';var EventEmitter=require(_0xecab('0x0'));var CmContact=require('../../mysqldb')['db']['CmContact'];var CmContactEvents=new EventEmitter();CmContactEvents[_0xecab('0x1')](0x0);var events={'afterCreate':_0xecab('0x2'),'afterUpdate':'update','afterDestroy':_0xecab('0x3')};function emitEvent(_0x1fd7df){return function(_0x495a2f,_0x417101,_0x2c4c1b){CmContactEvents[_0xecab('0x4')](_0x1fd7df+':'+_0x495a2f['id'],_0x495a2f);CmContactEvents[_0xecab('0x4')](_0x1fd7df,_0x495a2f);_0x2c4c1b(null);};}for(var e in events){if(events[_0xecab('0x5')](e)){var event=events[e];CmContact['hook'](e,emitEvent(event));}}module[_0xecab('0x6')]=CmContactEvents;
\ No newline at end of file