Built motion from commit b5996064.|2.6.21
[motion2.git] / server / services / ami / rpc / interval.js
index d4590ab..01c0443 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xabfe=['../client','stack','replace','trim','silly','intervalIftime\x20called\x20with','isArray','length','resolve','every','string','map','interval','concat','Request','IntervalIftime','intervalIftime','../../../config/logger','dialer'];(function(_0x425755,_0x16e311){var _0x38c60b=function(_0x22a7fa){while(--_0x22a7fa){_0x425755['push'](_0x425755['shift']());}};_0x38c60b(++_0x16e311);}(_0xabfe,0x1a0));var _0xeabf=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xabfe[_0x3dd15e];return _0x231fd0;};var logger=require(_0xeabf('0x0'))(_0xeabf('0x1'));var client=require(_0xeabf('0x2'));function intervalIftime(_0x181326,_0xd62eac){const _0x30ccb2=new Error()[_0xeabf('0x3')][_0xeabf('0x4')](/^Error/,'')[_0xeabf('0x5')]();logger[_0xeabf('0x6')](_0xeabf('0x7'),_0x181326,_0xd62eac,_0x30ccb2);const _0x51debc=Array[_0xeabf('0x8')](_0x181326);if(!_0x181326||_0x51debc&&_0x181326[_0xeabf('0x9')]===0x0){return Promise[_0xeabf('0xa')](![]);}else{var _0x2bed5a=[];var _0x242797=[];var _0x38e45d=_0x51debc?_0x181326:[_0x181326];var _0x1548ce=_0x38e45d[_0xeabf('0xb')](function(_0x2872be){return typeof _0x2872be==='number';});var _0x1b6a1f=_0x38e45d['every'](function(_0x21e851){return typeof _0x21e851===_0xeabf('0xc');});if(!_0x1548ce&&!_0x1b6a1f){_0x2bed5a=_0x38e45d[_0xeabf('0xd')](function(_0xfa1051){return _0xfa1051['id'];});if(_0x2bed5a[_0xeabf('0x9')]===0x0){_0x242797=_0x38e45d[_0xeabf('0xd')](function(_0x47590d){return _0x47590d[_0xeabf('0xe')];});}}else{if(_0x1548ce){_0x2bed5a=_0x2bed5a[_0xeabf('0xf')](_0x38e45d);}if(_0x1b6a1f){_0x242797=_0x242797[_0xeabf('0xf')](_0x38e45d);}}return client[_0xeabf('0x10')](_0xeabf('0x11'),{'intervalIds':_0x2bed5a,'intervals':_0x242797,'timezone':_0xd62eac,'log':_0xeabf('0x11')});}}exports[_0xeabf('0x12')]=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