Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / cmList / cmList.events.js
index 1c543a3..5317d6c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8d20=['CmList','setMaxListeners','update','remove','emit','hook','exports','events','../../mysqldb'];(function(_0x38c632,_0x14e8e6){var _0x12737e=function(_0x3e0fe4){while(--_0x3e0fe4){_0x38c632['push'](_0x38c632['shift']());}};_0x12737e(++_0x14e8e6);}(_0x8d20,0x193));var _0x08d2=function(_0x38b354,_0x361b55){_0x38b354=_0x38b354-0x0;var _0x117801=_0x8d20[_0x38b354];return _0x117801;};'use strict';var EventEmitter=require(_0x08d2('0x0'));var CmList=require(_0x08d2('0x1'))['db'][_0x08d2('0x2')];var CmListEvents=new EventEmitter();CmListEvents[_0x08d2('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x08d2('0x4'),'afterDestroy':_0x08d2('0x5')};function emitEvent(_0x5131fe){return function(_0xc3bfd2,_0x76be19,_0x183cd2){CmListEvents[_0x08d2('0x6')](_0x5131fe+':'+_0xc3bfd2['id'],_0xc3bfd2);CmListEvents[_0x08d2('0x6')](_0x5131fe,_0xc3bfd2);_0x183cd2(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];CmList[_0x08d2('0x7')](e,emitEvent(event));}}module[_0x08d2('0x8')]=CmListEvents;
\ No newline at end of file
+var _0x9957=['setMaxListeners','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','CmList'];(function(_0x399d63,_0x8a407d){var _0x1482b3=function(_0x485ca6){while(--_0x485ca6){_0x399d63['push'](_0x399d63['shift']());}};_0x1482b3(++_0x8a407d);}(_0x9957,0x93));var _0x7995=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x9957[_0x501510];return _0x1e6ee5;};'use strict';var EventEmitter=require(_0x7995('0x0'));var CmList=require(_0x7995('0x1'))['db'][_0x7995('0x2')];var CmListEvents=new EventEmitter();CmListEvents[_0x7995('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x7995('0x4'),'afterDestroy':_0x7995('0x5')};function emitEvent(_0x1902b4){return function(_0x462a03,_0x576d89,_0x744bea){CmListEvents[_0x7995('0x6')](_0x1902b4+':'+_0x462a03['id'],_0x462a03);CmListEvents[_0x7995('0x6')](_0x1902b4,_0x462a03);_0x744bea(null);};}for(var e in events){if(events[_0x7995('0x7')](e)){var event=events[e];CmList[_0x7995('0x8')](e,emitEvent(event));}}module[_0x7995('0x9')]=CmListEvents;
\ No newline at end of file