Built motion from commit b5996064.|2.6.21
[motion2.git] / server / api / interval / interval.model.js
index 12a297c..795fd79 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc479=['Interval','tools_intervals','rewrite','string','interval','getIntervals','then','all','map','ifTime','reduce','./interval.attributes','../../utils/iftime','iftime','exports','define'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc479,0x1bb));var _0x9c47=function(_0x1df6c0,_0x132faa){_0x1df6c0=_0x1df6c0-0x0;var _0x3c0ccb=_0xc479[_0x1df6c0];return _0x3c0ccb;};'use strict';var attributes=require(_0x9c47('0x0'));var extensions=require('../../components/extensions/rewrite');var iftime=require(_0x9c47('0x1'))[_0x9c47('0x2')];module[_0x9c47('0x3')]=function(_0x4c5629){return _0x4c5629[_0x9c47('0x4')](_0x9c47('0x5'),attributes,{'tableName':_0x9c47('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x4b3da9){extensions['rewrite'](_0x4c5629,_0x4b3da9);},'afterBulkCreate':function(_0x141c88,_0x3249fd,_0x4268ea){_0x4268ea();extensions[_0x9c47('0x7')](_0x4c5629,_0x141c88[0x0]);},'afterUpdate':function(_0x1b8925){extensions[_0x9c47('0x7')](_0x4c5629,_0x1b8925);},'afterDestroy':function(_0x3b06ca){extensions['rewrite'](_0x4c5629,_0x3b06ca);}},'instanceMethods':{'ifTime':function(_0xa13c74=undefined,_0xc9fcb6=new Date()){if(typeof this['interval']===_0x9c47('0x8')){return iftime(this[_0x9c47('0x9')],_0xa13c74,_0xc9fcb6);}else{return this[_0x9c47('0xa')]()[_0x9c47('0xb')](function(_0x30f222){return Promise[_0x9c47('0xc')](_0x30f222[_0x9c47('0xd')](function(_0x35938e){return _0x35938e[_0x9c47('0xe')](_0xa13c74,_0xc9fcb6);}));})[_0x9c47('0xb')](function(_0x370816){return _0x370816[_0x9c47('0xf')](function(_0x4eb7d5,_0x223479){return _0x4eb7d5||_0x223479;},![]);});}}}});};
\ No newline at end of file
+var _0x6ff1=['exports','Interval','tools_intervals','rewrite','interval','string','all','map','ifTime','then','reduce','../../components/extensions/rewrite','../../utils/iftime','iftime'];(function(_0x466680,_0x2f4229){var _0x1a2998=function(_0xf2116){while(--_0xf2116){_0x466680['push'](_0x466680['shift']());}};_0x1a2998(++_0x2f4229);}(_0x6ff1,0x185));var _0x16ff=function(_0x67ae6e,_0x290b8b){_0x67ae6e=_0x67ae6e-0x0;var _0x4aa726=_0x6ff1[_0x67ae6e];return _0x4aa726;};'use strict';var attributes=require('./interval.attributes');var extensions=require(_0x16ff('0x0'));var iftime=require(_0x16ff('0x1'))[_0x16ff('0x2')];module[_0x16ff('0x3')]=function(_0x2a8354){return _0x2a8354['define'](_0x16ff('0x4'),attributes,{'tableName':_0x16ff('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x244da2){extensions[_0x16ff('0x6')](_0x2a8354,_0x244da2);},'afterBulkCreate':function(_0x2ca765,_0x239e39,_0x57a4d6){_0x57a4d6();extensions[_0x16ff('0x6')](_0x2a8354,_0x2ca765[0x0]);},'afterUpdate':function(_0x5f4621){extensions[_0x16ff('0x6')](_0x2a8354,_0x5f4621);},'afterDestroy':function(_0x307bcf){extensions[_0x16ff('0x6')](_0x2a8354,_0x307bcf);}},'instanceMethods':{'ifTime':function(_0x22dbd2=undefined,_0x193287=new Date()){if(typeof this[_0x16ff('0x7')]===_0x16ff('0x8')){return iftime(this[_0x16ff('0x7')],_0x22dbd2,_0x193287);}else{return this['getIntervals']()['then'](function(_0x23d058){return Promise[_0x16ff('0x9')](_0x23d058[_0x16ff('0xa')](function(_0x1acb60){return _0x1acb60[_0x16ff('0xb')](_0x22dbd2,_0x193287);}));})[_0x16ff('0xc')](function(_0x49de21){return _0x49de21[_0x16ff('0xd')](function(_0x4fbbf1,_0xb0a7ab){return _0x4fbbf1||_0xb0a7ab;},![]);});}}}});};
\ No newline at end of file