Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / services / routing / server / applications / tvox.js
index 063c32c..3a391b4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x95d8=['utf8','POST','parse','result','Unable\x20to\x20login\x20with\x20TVox\x20application','channelId=','&serviceId=','&sessionId=','&data=','then','[%s][TVOX]\x20Request\x20sent\x20to\x20TVox:\x20%s','stop','error','[%s][TVOX]\x20%s','info','next','consequence','replace','\x20-\x20','includes','push','?params=','urlOnRing','title','jsonrpc','2.0','login','params','stringify'];(function(_0x475db7,_0x1cfbd9){var _0x1f06f9=function(_0x4c2646){while(--_0x4c2646){_0x475db7['push'](_0x475db7['shift']());}};_0x1f06f9(++_0x1cfbd9);}(_0x95d8,0x1a6));var _0x895d=function(_0x2e0c73,_0x17db18){_0x2e0c73=_0x2e0c73-0x0;var _0x3e3938=_0x95d8[_0x2e0c73];return _0x3e3938;};'use strict';var rp=require('request-promise');var logger=require('../../../../config/logger')('routing');var _=require('lodash');var arr=[];exports[_0x895d('0x0')]=function(_0x4537fe,_0x333761){return function(_0x5854d1){var _0x543396=_0x333761[0xa];var _0x575ddf=_0x333761[0xb];var _0x2f4fa6=_0x333761[0xc];var _0x2a3fed=_0x333761[0xd];var _0x47dc13=_0x333761[0xe];var _0x536060=_0x333761[0xf][_0x895d('0x1')](/\n/g,_0x895d('0x2'));var _0x531209=_0x333761[0x10][_0x895d('0x1')](/\n/g,'\x20');if(!arr[_0x895d('0x3')](_0x575ddf)){arr[_0x895d('0x4')](_0x575ddf);var _0xea6ab2=_0x333761[0x3];var _0x4946df=_0x333761[0x4];var _0x263454=_0x333761[0x1];var _0x4fbf2b=_0x333761[0x0];var _0xc1a508={};_0xc1a508['urlOnAnswer']=_0x333761[0x8]+_0x895d('0x5')+_0x2f4fa6+'|'+_0x543396+'|'+_0x2a3fed+'|'+_0x575ddf+'|'+_0x47dc13;_0xc1a508[_0x895d('0x6')]=_0x333761[0x7]+_0x895d('0x5')+_0x2f4fa6+'|'+_0x543396+'|'+_0x2a3fed+'|'+_0x575ddf+'|'+_0x47dc13+'|'+_0x536060+'|'+_0x531209;_0xc1a508[_0x895d('0x7')]=_0x333761[0x9];var _0x1e3726={};_0x1e3726[_0x895d('0x8')]=_0x895d('0x9');_0x1e3726['method']=_0x895d('0xa');var _0x360a3b=[];_0x360a3b[_0x895d('0x4')](_0x333761[0x2]);_0x360a3b['push'](_0x333761[0x5]);_0x360a3b[_0x895d('0x4')](_0x333761[0x6]);_0x1e3726[_0x895d('0xb')]=_0x360a3b;_0x1e3726['id']=0x1;var _0x5ebcea=JSON[_0x895d('0xc')](_0x1e3726);var _0x3c7be8={'encoding':_0x895d('0xd'),'method':_0x895d('0xe'),'timeout':0x2710,'url':_0xea6ab2,'headers':{'Content-Type':'application/json-rpc'},'body':_0x5ebcea};return rp(_0x3c7be8)['then'](function(_0x51f04d){const _0x3b49e1=JSON[_0x895d('0xf')](_0x51f04d);if(!_0x3b49e1[_0x895d('0x10')]['logged']){throw new Error(_0x895d('0x11'));}var _0x23cff1=_0x575ddf;var _0x34cf42=_0x895d('0x12')+_0x263454+_0x895d('0x13')+_0x4fbf2b+_0x895d('0x14')+_0x23cff1+_0x895d('0x15')+JSON['stringify'](_0xc1a508);var _0x11a32d=_0x4946df+'?'+_0x34cf42;return rp(_0x11a32d);})[_0x895d('0x16')](function(_0x9ac574){logger['info'](_0x895d('0x17'),_0x4537fe,_0x9ac574);_0x5854d1[_0x895d('0x18')]();})['catch'](function(_0x37bd6e){logger[_0x895d('0x19')](_0x895d('0x1a'),_0x4537fe,_['isObject'](_0x37bd6e)?JSON['stringify'](_0x37bd6e):_0x37bd6e);_0x5854d1[_0x895d('0x18')]();});}else{logger[_0x895d('0x1b')]('[%s][TVOX]\x20Application\x20already\x20executed\x20for\x20the\x20current\x20session,\x20force\x20next',_0x4537fe);_0x5854d1[_0x895d('0x1c')]();}};};
\ 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