Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / services / ami / rpc / interval.js
index 01c0443..752b536 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0x6ef2=['concat','IntervalIftime','../../../config/logger','dialer','trim','silly','isArray','length','number','every','map'];(function(_0x4ff09b,_0x53f67d){var _0x3f5c2e=function(_0x124592){while(--_0x124592){_0x4ff09b['push'](_0x4ff09b['shift']());}};_0x3f5c2e(++_0x53f67d);}(_0x6ef2,0x1e6));var _0x26ef=function(_0x1812ad,_0x5f98b3){_0x1812ad=_0x1812ad-0x0;var _0x30e545=_0x6ef2[_0x1812ad];return _0x30e545;};var logger=require(_0x26ef('0x0'))(_0x26ef('0x1'));var client=require('../client');function intervalIftime(_0x516ab2,_0x4a5e05){const _0x15452a=new Error()['stack']['replace'](/^Error/,'')[_0x26ef('0x2')]();logger[_0x26ef('0x3')]('intervalIftime\x20called\x20with',_0x516ab2,_0x4a5e05,_0x15452a);const _0x5ee3cf=Array[_0x26ef('0x4')](_0x516ab2);if(!_0x516ab2||_0x5ee3cf&&_0x516ab2[_0x26ef('0x5')]===0x0){return Promise['resolve'](![]);}else{var _0x46362b=[];var _0x51de24=[];var _0x1d8b0f=_0x5ee3cf?_0x516ab2:[_0x516ab2];var _0x4b874a=_0x1d8b0f['every'](function(_0x1b34c4){return typeof _0x1b34c4===_0x26ef('0x6');});var _0x574047=_0x1d8b0f[_0x26ef('0x7')](function(_0x4a7c26){return typeof _0x4a7c26==='string';});if(!_0x4b874a&&!_0x574047){_0x46362b=_0x1d8b0f[_0x26ef('0x8')](function(_0x376f28){return _0x376f28['id'];});if(_0x46362b[_0x26ef('0x5')]===0x0){_0x51de24=_0x1d8b0f[_0x26ef('0x8')](function(_0x5501c3){return _0x5501c3['interval'];});}}else{if(_0x4b874a){_0x46362b=_0x46362b[_0x26ef('0x9')](_0x1d8b0f);}if(_0x574047){_0x51de24=_0x51de24[_0x26ef('0x9')](_0x1d8b0f);}}return client['Request'](_0x26ef('0xa'),{'intervalIds':_0x46362b,'intervals':_0x51de24,'timezone':_0x4a5e05,'log':_0x26ef('0xa')});}}exports['intervalIftime']=intervalIftime;
\ No newline at end of file