Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / services / ami / trigger / urlforward / index.js
index a94d1ee..37e4a69 100644 (file)
@@ -1 +1 @@
-const a1313_0x1a63=['%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','GET','lodash','data1','render','util','data7','format','number','data5','stack','stringify','PUT','data6','message','info','parse','body','headers','trigger','POST','name','statusCode','DELETE',',\x20request\x20body:\x20','toUpperCase','data2','error','body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format','then','isNil','request-promise-native','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s'];(function(_0x1903a1,_0x2bce82){const _0x1a6321=function(_0x13dbba){while(--_0x13dbba){_0x1903a1['push'](_0x1903a1['shift']());}};_0x1a6321(++_0x2bce82);}(a1313_0x1a63,0x124));const a1313_0x13db=function(_0x1903a1,_0x2bce82){_0x1903a1=_0x1903a1-0x1e9;let _0x1a6321=a1313_0x1a63[_0x1903a1];return _0x1a6321;};const a1313_0x3e71f2=a1313_0x13db;'use strict';const rp=require(a1313_0x3e71f2(0x1f5)),util=require(a1313_0x3e71f2(0x1fd)),_=require(a1313_0x3e71f2(0x1fa)),Mustache=require('mustache'),logger=require('../../../../config/logger')(a1313_0x3e71f2(0x1e9));exports['exec']=function(_0x2a55c1,_0x1a466c){const _0x45e5ad=a1313_0x3e71f2;let _0x11cb29,_0x4ff98e;const _0x1eb688={'method':_0x2a55c1[_0x45e5ad(0x1fb)][_0x45e5ad(0x1ef)](),'uri':Mustache[_0x45e5ad(0x1fc)](_0x2a55c1[_0x45e5ad(0x1f0)],_0x1a466c),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x2a55c1[_0x45e5ad(0x201)])===_0x45e5ad(0x200)&&parseInt(_0x2a55c1[_0x45e5ad(0x201)])>=0x1&&parseInt(_0x2a55c1[_0x45e5ad(0x201)])<=0xa?parseInt(_0x2a55c1[_0x45e5ad(0x201)])*0x3e8:0x5*0x3e8};try{_0x1eb688[_0x45e5ad(0x20a)]=_0x2a55c1['data6']?JSON['parse'](Mustache[_0x45e5ad(0x1fc)](_0x2a55c1[_0x45e5ad(0x205)],_0x1a466c)):{};}catch(_0x4e4e9e){logger['error'](_0x4e4e9e[_0x45e5ad(0x202)]);}switch(_0x2a55c1[_0x45e5ad(0x1fb)][_0x45e5ad(0x1ef)]()){case _0x45e5ad(0x1f9):case _0x45e5ad(0x1ed):_0x11cb29=null,_0x1eb688['qs']=_0x1a466c;break;case _0x45e5ad(0x1ea):case _0x45e5ad(0x204):if(_0x2a55c1[_0x45e5ad(0x1fe)])try{_0x11cb29=JSON[_0x45e5ad(0x208)](Mustache[_0x45e5ad(0x1fc)](_0x2a55c1[_0x45e5ad(0x1fe)],_0x1a466c)),_0x1eb688[_0x45e5ad(0x209)]=_0x11cb29;}catch(_0x5ad4d8){logger[_0x45e5ad(0x1f1)](_0x5ad4d8['stack']),logger[_0x45e5ad(0x1f1)](_0x45e5ad(0x1f2));}else _0x11cb29=_0x1a466c,_0x1eb688[_0x45e5ad(0x209)]=_0x11cb29;break;}logger[_0x45e5ad(0x207)](util[_0x45e5ad(0x1ff)](_0x45e5ad(0x1f7),_0x2a55c1[_0x45e5ad(0x1fb)],_0x2a55c1[_0x45e5ad(0x1f0)],JSON['stringify'](_0x1eb688))),rp(_0x1eb688)[_0x45e5ad(0x1f3)](function(_0x825ed9){const _0x13775c=_0x45e5ad;_0x11cb29=!_[_0x13775c(0x1f4)](_0x11cb29)?_0x13775c(0x1ee)+_0x11cb29:'',_0x4ff98e=typeof _0x825ed9[_0x13775c(0x209)]==='object'?JSON[_0x13775c(0x203)](_0x825ed9[_0x13775c(0x209)]):_0x825ed9[_0x13775c(0x209)],logger[_0x13775c(0x207)](util['format'](_0x13775c(0x1f6),_0x2a55c1[_0x13775c(0x1fb)],_0x2a55c1[_0x13775c(0x1f0)],_0x825ed9['statusCode'],_0x4ff98e));})['catch'](function(_0x47dc68){const _0x950860=_0x45e5ad;logger['error'](util[_0x950860(0x1ff)](_0x950860(0x1f8),_0x2a55c1['data1'],_0x2a55c1['data2'],_0x47dc68[_0x950860(0x1ec)],_0x47dc68[_0x950860(0x1eb)],_0x47dc68[_0x950860(0x206)]));});};
\ No newline at end of file
+const a1317_0x26ad=['statusCode','util','mustache','lodash','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s',',\x20request\x20body:\x20','render','format','POST','message','data7','stack','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','data1','parse','request-promise-native','exec','../../../../config/logger','PUT','body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format','then','DELETE','toUpperCase','headers','data6','isNil','error','GET','%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','info','data2','data5','trigger','body','stringify','object'];(function(_0xefd7fb,_0x20fe33){const _0x26ad1c=function(_0x2bcd8b){while(--_0x2bcd8b){_0xefd7fb['push'](_0xefd7fb['shift']());}};_0x26ad1c(++_0x20fe33);}(a1317_0x26ad,0x189));const a1317_0x2bcd=function(_0xefd7fb,_0x20fe33){_0xefd7fb=_0xefd7fb-0xed;let _0x26ad1c=a1317_0x26ad[_0xefd7fb];return _0x26ad1c;};const a1317_0x530c96=a1317_0x2bcd;'use strict';const rp=require(a1317_0x530c96(0xff)),util=require(a1317_0x530c96(0xf1)),_=require(a1317_0x530c96(0xf3)),Mustache=require(a1317_0x530c96(0xf2)),logger=require(a1317_0x530c96(0x101))(a1317_0x530c96(0x110));exports[a1317_0x530c96(0x100)]=function(_0x3a4c6d,_0x5739da){const _0x42e551=a1317_0x530c96;let _0x346a11,_0x3694d2;const _0x3ef902={'method':_0x3a4c6d[_0x42e551(0xfd)][_0x42e551(0x106)](),'uri':Mustache[_0x42e551(0xf6)](_0x3a4c6d[_0x42e551(0x10e)],_0x5739da),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x3a4c6d[_0x42e551(0x10f)])==='number'&&parseInt(_0x3a4c6d[_0x42e551(0x10f)])>=0x1&&parseInt(_0x3a4c6d[_0x42e551(0x10f)])<=0xa?parseInt(_0x3a4c6d[_0x42e551(0x10f)])*0x3e8:0x5*0x3e8};try{_0x3ef902[_0x42e551(0x107)]=_0x3a4c6d[_0x42e551(0x108)]?JSON['parse'](Mustache['render'](_0x3a4c6d[_0x42e551(0x108)],_0x5739da)):{};}catch(_0x9d8bcc){logger['error'](_0x9d8bcc['stack']);}switch(_0x3a4c6d[_0x42e551(0xfd)]['toUpperCase']()){case _0x42e551(0x10b):case _0x42e551(0x105):_0x346a11=null,_0x3ef902['qs']=_0x5739da;break;case _0x42e551(0xf8):case _0x42e551(0x102):if(_0x3a4c6d[_0x42e551(0xfa)])try{_0x346a11=JSON[_0x42e551(0xfe)](Mustache['render'](_0x3a4c6d[_0x42e551(0xfa)],_0x5739da)),_0x3ef902[_0x42e551(0xed)]=_0x346a11;}catch(_0x295921){logger[_0x42e551(0x10a)](_0x295921[_0x42e551(0xfb)]),logger[_0x42e551(0x10a)](_0x42e551(0x103));}else _0x346a11=_0x5739da,_0x3ef902[_0x42e551(0xed)]=_0x346a11;break;}logger[_0x42e551(0x10d)](util[_0x42e551(0xf7)](_0x42e551(0x10c),_0x3a4c6d[_0x42e551(0xfd)],_0x3a4c6d[_0x42e551(0x10e)],JSON['stringify'](_0x3ef902))),rp(_0x3ef902)[_0x42e551(0x104)](function(_0x1edf82){const _0x45c8f1=_0x42e551;_0x346a11=!_[_0x45c8f1(0x109)](_0x346a11)?_0x45c8f1(0xf5)+_0x346a11:'',_0x3694d2=typeof _0x1edf82['body']===_0x45c8f1(0xef)?JSON[_0x45c8f1(0xee)](_0x1edf82[_0x45c8f1(0xed)]):_0x1edf82['body'],logger[_0x45c8f1(0x10d)](util['format'](_0x45c8f1(0xf4),_0x3a4c6d['data1'],_0x3a4c6d[_0x45c8f1(0x10e)],_0x1edf82[_0x45c8f1(0xf0)],_0x3694d2));})['catch'](function(_0x48b329){const _0x2a7750=_0x42e551;logger[_0x2a7750(0x10a)](util['format'](_0x2a7750(0xfc),_0x3a4c6d[_0x2a7750(0xfd)],_0x3a4c6d[_0x2a7750(0x10e)],_0x48b329['statusCode'],_0x48b329['name'],_0x48b329[_0x2a7750(0xf9)]));});};
\ No newline at end of file