Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / services / routing / server / applications / tvox.js
index 02b6ef7..3a391b4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x85e0=['params','stringify','utf8','application/json-rpc','parse','result','logged','Unable\x20to\x20login\x20with\x20TVox\x20application','channelId=','&serviceId=','&data=','then','[%s][TVOX]\x20Request\x20sent\x20to\x20TVox:\x20%s','stop','[%s][TVOX]\x20%s','isObject','[%s][TVOX]\x20Application\x20already\x20executed\x20for\x20the\x20current\x20session,\x20force\x20next','request-promise','../../../../config/logger','routing','lodash','consequence','replace','\x20-\x20','includes','urlOnRing','?params=','title','jsonrpc','2.0','method','login','push'];(function(_0x525687,_0x1f61fe){var _0x2f57ca=function(_0x13a24a){while(--_0x13a24a){_0x525687['push'](_0x525687['shift']());}};_0x2f57ca(++_0x1f61fe);}(_0x85e0,0xb6));var _0x085e=function(_0x2b9b7f,_0x4d47df){_0x2b9b7f=_0x2b9b7f-0x0;var _0x4ed19a=_0x85e0[_0x2b9b7f];return _0x4ed19a;};'use strict';var rp=require(_0x085e('0x0'));var logger=require(_0x085e('0x1'))(_0x085e('0x2'));var _=require(_0x085e('0x3'));var arr=[];exports[_0x085e('0x4')]=function(_0x2e5c68,_0x46a689){return function(_0x1bcd98){var _0x593161=_0x46a689[0xa];var _0x34ded8=_0x46a689[0xb];var _0x192fe2=_0x46a689[0xc];var _0x35c2ee=_0x46a689[0xd];var _0x5e01b2=_0x46a689[0xe];var _0x34489f=_0x46a689[0xf][_0x085e('0x5')](/\n/g,_0x085e('0x6'));var _0x1bb0c8=_0x46a689[0x10]['replace'](/\n/g,'\x20');if(!arr[_0x085e('0x7')](_0x34ded8)){arr['push'](_0x34ded8);var _0x12f4a2=_0x46a689[0x3];var _0x5ed902=_0x46a689[0x4];var _0xf2db99=_0x46a689[0x1];var _0x1dd9ba=_0x46a689[0x0];var _0x4647c6={};_0x4647c6['urlOnAnswer']=_0x46a689[0x8]+'?params='+_0x192fe2+'|'+_0x593161+'|'+_0x35c2ee+'|'+_0x34ded8+'|'+_0x5e01b2;_0x4647c6[_0x085e('0x8')]=_0x46a689[0x7]+_0x085e('0x9')+_0x192fe2+'|'+_0x593161+'|'+_0x35c2ee+'|'+_0x34ded8+'|'+_0x5e01b2+'|'+_0x34489f+'|'+_0x1bb0c8;_0x4647c6[_0x085e('0xa')]=_0x46a689[0x9];var _0x26790d={};_0x26790d[_0x085e('0xb')]=_0x085e('0xc');_0x26790d[_0x085e('0xd')]=_0x085e('0xe');var _0x562061=[];_0x562061[_0x085e('0xf')](_0x46a689[0x2]);_0x562061[_0x085e('0xf')](_0x46a689[0x5]);_0x562061[_0x085e('0xf')](_0x46a689[0x6]);_0x26790d[_0x085e('0x10')]=_0x562061;_0x26790d['id']=0x1;var _0xfb2a7c=JSON[_0x085e('0x11')](_0x26790d);var _0x4948f9={'encoding':_0x085e('0x12'),'method':'POST','timeout':0x2710,'url':_0x12f4a2,'headers':{'Content-Type':_0x085e('0x13')},'body':_0xfb2a7c};return rp(_0x4948f9)['then'](function(_0x4715ee){const _0x2ea104=JSON[_0x085e('0x14')](_0x4715ee);if(!_0x2ea104[_0x085e('0x15')][_0x085e('0x16')]){throw new Error(_0x085e('0x17'));}var _0x5d1436=_0x34ded8;var _0x5545ff=_0x085e('0x18')+_0xf2db99+_0x085e('0x19')+_0x1dd9ba+'&sessionId='+_0x5d1436+_0x085e('0x1a')+JSON[_0x085e('0x11')](_0x4647c6);var _0x4a4e6b=_0x5ed902+'?'+_0x5545ff;return rp(_0x4a4e6b);})[_0x085e('0x1b')](function(_0x5356a4){logger['info'](_0x085e('0x1c'),_0x2e5c68,_0x5356a4);_0x1bcd98[_0x085e('0x1d')]();})['catch'](function(_0x3c936e){logger['error'](_0x085e('0x1e'),_0x2e5c68,_[_0x085e('0x1f')](_0x3c936e)?JSON[_0x085e('0x11')](_0x3c936e):_0x3c936e);_0x1bcd98[_0x085e('0x1d')]();});}else{logger['info'](_0x085e('0x20'),_0x2e5c68);_0x1bcd98['next']();}};};
\ No newline at end of file
+var _0x1bc0=['replace','\x20-\x20','includes','push','urlOnAnswer','?params=','urlOnRing','title','2.0','login','params','utf8','application/json-rpc','then','parse','result','logged','Unable\x20to\x20login\x20with\x20TVox\x20application','channelId=','&serviceId=','&sessionId=','&data=','stringify','[%s][TVOX]\x20Request\x20sent\x20to\x20TVox:\x20%s','stop','catch','[%s][TVOX]\x20%s','isObject','info','[%s][TVOX]\x20Application\x20already\x20executed\x20for\x20the\x20current\x20session,\x20force\x20next','next','request-promise','../../../../config/logger','routing','lodash','consequence'];(function(_0xd4ceea,_0x1cd8f5){var _0xaf3d76=function(_0x4d86b1){while(--_0x4d86b1){_0xd4ceea['push'](_0xd4ceea['shift']());}};_0xaf3d76(++_0x1cd8f5);}(_0x1bc0,0x1cf));var _0x01bc=function(_0x2a9b9a,_0x4792c8){_0x2a9b9a=_0x2a9b9a-0x0;var _0x753892=_0x1bc0[_0x2a9b9a];return _0x753892;};'use strict';var rp=require(_0x01bc('0x0'));var logger=require(_0x01bc('0x1'))(_0x01bc('0x2'));var _=require(_0x01bc('0x3'));var arr=[];exports[_0x01bc('0x4')]=function(_0x4dfcfb,_0x31cf28){return function(_0x5f18e7){var _0x2a7510=_0x31cf28[0xa];var _0x5e2738=_0x31cf28[0xb];var _0x24dd45=_0x31cf28[0xc];var _0x59cd88=_0x31cf28[0xd];var _0x4aae4a=_0x31cf28[0xe];var _0xc87ccd=_0x31cf28[0xf][_0x01bc('0x5')](/\n/g,_0x01bc('0x6'));var _0x216c83=_0x31cf28[0x10][_0x01bc('0x5')](/\n/g,'\x20');if(!arr[_0x01bc('0x7')](_0x5e2738)){arr[_0x01bc('0x8')](_0x5e2738);var _0x4883f9=_0x31cf28[0x3];var _0x9ef235=_0x31cf28[0x4];var _0x4d5d89=_0x31cf28[0x1];var _0x1eb009=_0x31cf28[0x0];var _0x262dad={};_0x262dad[_0x01bc('0x9')]=_0x31cf28[0x8]+_0x01bc('0xa')+_0x24dd45+'|'+_0x2a7510+'|'+_0x59cd88+'|'+_0x5e2738+'|'+_0x4aae4a;_0x262dad[_0x01bc('0xb')]=_0x31cf28[0x7]+_0x01bc('0xa')+_0x24dd45+'|'+_0x2a7510+'|'+_0x59cd88+'|'+_0x5e2738+'|'+_0x4aae4a+'|'+_0xc87ccd+'|'+_0x216c83;_0x262dad[_0x01bc('0xc')]=_0x31cf28[0x9];var _0xac1856={};_0xac1856['jsonrpc']=_0x01bc('0xd');_0xac1856['method']=_0x01bc('0xe');var _0x5cb771=[];_0x5cb771[_0x01bc('0x8')](_0x31cf28[0x2]);_0x5cb771['push'](_0x31cf28[0x5]);_0x5cb771[_0x01bc('0x8')](_0x31cf28[0x6]);_0xac1856[_0x01bc('0xf')]=_0x5cb771;_0xac1856['id']=0x1;var _0x595e5d=JSON['stringify'](_0xac1856);var _0x1fd2ec={'encoding':_0x01bc('0x10'),'method':'POST','timeout':0x2710,'url':_0x4883f9,'headers':{'Content-Type':_0x01bc('0x11')},'body':_0x595e5d};return rp(_0x1fd2ec)[_0x01bc('0x12')](function(_0x390243){const _0x1bd0aa=JSON[_0x01bc('0x13')](_0x390243);if(!_0x1bd0aa[_0x01bc('0x14')][_0x01bc('0x15')]){throw new Error(_0x01bc('0x16'));}var _0x42ae4d=_0x5e2738;var _0x42356d=_0x01bc('0x17')+_0x4d5d89+_0x01bc('0x18')+_0x1eb009+_0x01bc('0x19')+_0x42ae4d+_0x01bc('0x1a')+JSON[_0x01bc('0x1b')](_0x262dad);var _0x4aa62b=_0x9ef235+'?'+_0x42356d;return rp(_0x4aa62b);})[_0x01bc('0x12')](function(_0x3b1dda){logger['info'](_0x01bc('0x1c'),_0x4dfcfb,_0x3b1dda);_0x5f18e7[_0x01bc('0x1d')]();})[_0x01bc('0x1e')](function(_0x2aeb63){logger['error'](_0x01bc('0x1f'),_0x4dfcfb,_[_0x01bc('0x20')](_0x2aeb63)?JSON[_0x01bc('0x1b')](_0x2aeb63):_0x2aeb63);_0x5f18e7[_0x01bc('0x1d')]();});}else{logger[_0x01bc('0x21')](_0x01bc('0x22'),_0x4dfcfb);_0x5f18e7[_0x01bc('0x23')]();}};};
\ No newline at end of file