Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / interval / interval.model.js
index 79f2532..12a297c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x943f=['tools_intervals','rewrite','interval','string','getIntervals','then','all','map','./interval.attributes','../../components/extensions/rewrite','../../utils/iftime','exports','define','Interval'];(function(_0x4865e5,_0x4a4d1){var _0x4e958b=function(_0x3df4c3){while(--_0x3df4c3){_0x4865e5['push'](_0x4865e5['shift']());}};_0x4e958b(++_0x4a4d1);}(_0x943f,0x19e));var _0xf943=function(_0x31c844,_0x259f27){_0x31c844=_0x31c844-0x0;var _0x222ef0=_0x943f[_0x31c844];return _0x222ef0;};'use strict';var attributes=require(_0xf943('0x0'));var extensions=require(_0xf943('0x1'));var iftime=require(_0xf943('0x2'))['iftime'];module[_0xf943('0x3')]=function(_0x5f176f){return _0x5f176f[_0xf943('0x4')](_0xf943('0x5'),attributes,{'tableName':_0xf943('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x3494f2){extensions[_0xf943('0x7')](_0x5f176f,_0x3494f2);},'afterBulkCreate':function(_0xe83f73,_0x1583fc,_0x4ad15c){_0x4ad15c();extensions[_0xf943('0x7')](_0x5f176f,_0xe83f73[0x0]);},'afterUpdate':function(_0x174b77){extensions[_0xf943('0x7')](_0x5f176f,_0x174b77);},'afterDestroy':function(_0x32dcc9){extensions[_0xf943('0x7')](_0x5f176f,_0x32dcc9);}},'instanceMethods':{'ifTime':function(_0x4bfd11=undefined,_0x13b6fc=new Date()){if(typeof this[_0xf943('0x8')]===_0xf943('0x9')){return iftime(this['interval'],_0x4bfd11,_0x13b6fc);}else{return this[_0xf943('0xa')]()[_0xf943('0xb')](function(_0x199545){return Promise[_0xf943('0xc')](_0x199545[_0xf943('0xd')](function(_0x7abf00){return _0x7abf00['ifTime'](_0x4bfd11,_0x13b6fc);}));})['then'](function(_0x1fe47f){return _0x1fe47f['reduce'](function(_0x33818d,_0x564310){return _0x33818d||_0x564310;},![]);});}}}});};
\ No newline at end of file
+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