Built motion from commit b5996064.|2.6.21
[motion2.git] / server / services / ami / rpc / interval.js
index d4ab2d4..01c0443 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xca74=['concat','IntervalIftime','dialer','stack','replace','trim','isArray','length','resolve','every','number','string','map'];(function(_0x29dce5,_0x269b1e){var _0x5c6693=function(_0x825c39){while(--_0x825c39){_0x29dce5['push'](_0x29dce5['shift']());}};_0x5c6693(++_0x269b1e);}(_0xca74,0xd2));var _0x4ca7=function(_0x310990,_0x245984){_0x310990=_0x310990-0x0;var _0x648534=_0xca74[_0x310990];return _0x648534;};var logger=require('../../../config/logger')(_0x4ca7('0x0'));var client=require('../client');function intervalIftime(_0x2c3596,_0x3ff334){const _0x3a8a13=new Error()[_0x4ca7('0x1')][_0x4ca7('0x2')](/^Error/,'')[_0x4ca7('0x3')]();logger['silly']('intervalIftime\x20called\x20with',_0x2c3596,_0x3ff334,_0x3a8a13);const _0x2d2262=Array[_0x4ca7('0x4')](_0x2c3596);if(!_0x2c3596||_0x2d2262&&_0x2c3596[_0x4ca7('0x5')]===0x0){return Promise[_0x4ca7('0x6')](![]);}else{var _0x48ba85=[];var _0x4261de=[];var _0x1a1075=_0x2d2262?_0x2c3596:[_0x2c3596];var _0x507132=_0x1a1075[_0x4ca7('0x7')](function(_0x1ec793){return typeof _0x1ec793===_0x4ca7('0x8');});var _0xc12495=_0x1a1075['every'](function(_0x598513){return typeof _0x598513===_0x4ca7('0x9');});if(!_0x507132&&!_0xc12495){_0x48ba85=_0x1a1075[_0x4ca7('0xa')](function(_0x3f4792){return _0x3f4792['id'];});if(_0x48ba85[_0x4ca7('0x5')]===0x0){_0x4261de=_0x1a1075[_0x4ca7('0xa')](function(_0xcff0f2){return _0xcff0f2['interval'];});}}else{if(_0x507132){_0x48ba85=_0x48ba85[_0x4ca7('0xb')](_0x1a1075);}if(_0xc12495){_0x4261de=_0x4261de[_0x4ca7('0xb')](_0x1a1075);}}return client['Request'](_0x4ca7('0xc'),{'intervalIds':_0x48ba85,'intervals':_0x4261de,'timezone':_0x3ff334,'log':_0x4ca7('0xc')});}}exports['intervalIftime']=intervalIftime;
\ No newline at end of file
+var _0x7c1b=['map','interval','concat','Request','IntervalIftime','intervalIftime','../../../config/logger','../client','stack','replace','trim','silly','isArray','length','resolve','every','number','string'];(function(_0x3cccea,_0x172a13){var _0x5170a0=function(_0x295898){while(--_0x295898){_0x3cccea['push'](_0x3cccea['shift']());}};_0x5170a0(++_0x172a13);}(_0x7c1b,0x1a4));var _0xb7c1=function(_0x4f9105,_0x587b0c){_0x4f9105=_0x4f9105-0x0;var _0x9f8a21=_0x7c1b[_0x4f9105];return _0x9f8a21;};var logger=require(_0xb7c1('0x0'))('dialer');var client=require(_0xb7c1('0x1'));function intervalIftime(_0x3dbfe3,_0x18a1d7){const _0x186c23=new Error()[_0xb7c1('0x2')][_0xb7c1('0x3')](/^Error/,'')[_0xb7c1('0x4')]();logger[_0xb7c1('0x5')]('intervalIftime\x20called\x20with',_0x3dbfe3,_0x18a1d7,_0x186c23);const _0x54eb9f=Array[_0xb7c1('0x6')](_0x3dbfe3);if(!_0x3dbfe3||_0x54eb9f&&_0x3dbfe3[_0xb7c1('0x7')]===0x0){return Promise[_0xb7c1('0x8')](![]);}else{var _0x19e398=[];var _0x40f8df=[];var _0x564429=_0x54eb9f?_0x3dbfe3:[_0x3dbfe3];var _0x1ba3f6=_0x564429[_0xb7c1('0x9')](function(_0x47d2cd){return typeof _0x47d2cd===_0xb7c1('0xa');});var _0x1422eb=_0x564429[_0xb7c1('0x9')](function(_0x415ba5){return typeof _0x415ba5===_0xb7c1('0xb');});if(!_0x1ba3f6&&!_0x1422eb){_0x19e398=_0x564429[_0xb7c1('0xc')](function(_0x3e250f){return _0x3e250f['id'];});if(_0x19e398[_0xb7c1('0x7')]===0x0){_0x40f8df=_0x564429[_0xb7c1('0xc')](function(_0xfab7e2){return _0xfab7e2[_0xb7c1('0xd')];});}}else{if(_0x1ba3f6){_0x19e398=_0x19e398[_0xb7c1('0xe')](_0x564429);}if(_0x1422eb){_0x40f8df=_0x40f8df['concat'](_0x564429);}}return client[_0xb7c1('0xf')](_0xb7c1('0x10'),{'intervalIds':_0x19e398,'intervals':_0x40f8df,'timezone':_0x18a1d7,'log':'IntervalIftime'});}}exports[_0xb7c1('0x11')]=intervalIftime;
\ No newline at end of file