Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / routing / server / applications / tvox.js
index 041fd8d..cde014e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2e2f=['logged','Unable\x20to\x20login\x20with\x20TVox\x20application','channelId=','&sessionId=','&data=','info','catch','error','isObject','stop','[%s][TVOX]\x20Application\x20already\x20executed\x20for\x20the\x20current\x20session,\x20force\x20next','next','request-promise','routing','lodash','replace','push','urlOnAnswer','?params=','urlOnRing','2.0','login','params','stringify','utf8','POST','application/json-rpc','then','parse','result'];(function(_0x1036fa,_0x32eca3){var _0x4ec693=function(_0x145740){while(--_0x145740){_0x1036fa['push'](_0x1036fa['shift']());}};_0x4ec693(++_0x32eca3);}(_0x2e2f,0x1ce));var _0xf2e2=function(_0x546f45,_0x3a0b48){_0x546f45=_0x546f45-0x0;var _0x3058cc=_0x2e2f[_0x546f45];return _0x3058cc;};'use strict';var rp=require(_0xf2e2('0x0'));var logger=require('../../../../config/logger')(_0xf2e2('0x1'));var _=require(_0xf2e2('0x2'));var arr=[];exports['consequence']=function(_0x5297c5,_0x40e0c4){return function(_0x59366c){var _0x5eb9f9=_0x40e0c4[0xa];var _0x34b6a6=_0x40e0c4[0xb];var _0x30ace4=_0x40e0c4[0xc];var _0x5e65be=_0x40e0c4[0xd];var _0xfb318d=_0x40e0c4[0xe];var _0x547b87=_0x40e0c4[0xf][_0xf2e2('0x3')](/\n/g,'\x20-\x20');var _0x501f07=_0x40e0c4[0x10][_0xf2e2('0x3')](/\n/g,'\x20');if(!arr['includes'](_0x34b6a6)){arr[_0xf2e2('0x4')](_0x34b6a6);var _0x42fbb6=_0x40e0c4[0x3];var _0x39154b=_0x40e0c4[0x4];var _0x58eef8=_0x40e0c4[0x1];var _0x2e1fae=_0x40e0c4[0x0];var _0x3de77a={};_0x3de77a[_0xf2e2('0x5')]=_0x40e0c4[0x8]+_0xf2e2('0x6')+_0x30ace4+'|'+_0x5eb9f9+'|'+_0x5e65be+'|'+_0x34b6a6+'|'+_0xfb318d;_0x3de77a[_0xf2e2('0x7')]=_0x40e0c4[0x7]+_0xf2e2('0x6')+_0x30ace4+'|'+_0x5eb9f9+'|'+_0x5e65be+'|'+_0x34b6a6+'|'+_0xfb318d+'|'+_0x547b87+'|'+_0x501f07;_0x3de77a['title']=_0x40e0c4[0x9];var _0x72d8e4={};_0x72d8e4['jsonrpc']=_0xf2e2('0x8');_0x72d8e4['method']=_0xf2e2('0x9');var _0x5dd33c=[];_0x5dd33c[_0xf2e2('0x4')](_0x40e0c4[0x2]);_0x5dd33c[_0xf2e2('0x4')](_0x40e0c4[0x5]);_0x5dd33c['push'](_0x40e0c4[0x6]);_0x72d8e4[_0xf2e2('0xa')]=_0x5dd33c;_0x72d8e4['id']=0x1;var _0x3905b2=JSON[_0xf2e2('0xb')](_0x72d8e4);var _0x1c48bd={'encoding':_0xf2e2('0xc'),'method':_0xf2e2('0xd'),'timeout':0x2710,'url':_0x42fbb6,'headers':{'Content-Type':_0xf2e2('0xe')},'body':_0x3905b2};return rp(_0x1c48bd)[_0xf2e2('0xf')](function(_0x542097){const _0x8e5d7e=JSON[_0xf2e2('0x10')](_0x542097);if(!_0x8e5d7e[_0xf2e2('0x11')][_0xf2e2('0x12')]){throw new Error(_0xf2e2('0x13'));}var _0x23df8c=_0x34b6a6;var _0x68ae7b=_0xf2e2('0x14')+_0x58eef8+'&serviceId='+_0x2e1fae+_0xf2e2('0x15')+_0x23df8c+_0xf2e2('0x16')+JSON[_0xf2e2('0xb')](_0x3de77a);var _0x204c07=_0x39154b+'?'+_0x68ae7b;return rp(_0x204c07);})[_0xf2e2('0xf')](function(_0x931d2c){logger[_0xf2e2('0x17')]('[%s][TVOX]\x20Request\x20sent\x20to\x20TVox:\x20%s',_0x5297c5,_0x931d2c);_0x59366c['stop']();})[_0xf2e2('0x18')](function(_0x41794d){logger[_0xf2e2('0x19')]('[%s][TVOX]\x20%s',_0x5297c5,_[_0xf2e2('0x1a')](_0x41794d)?JSON['stringify'](_0x41794d):_0x41794d);_0x59366c[_0xf2e2('0x1b')]();});}else{logger[_0xf2e2('0x17')](_0xf2e2('0x1c'),_0x5297c5);_0x59366c[_0xf2e2('0x1d')]();}};};
\ No newline at end of file
+var _0xa140=['routing','lodash','\x20-\x20','includes','push','urlOnAnswer','urlOnRing','?params=','2.0','method','login','params','utf8','application/json-rpc','parse','result','logged','Unable\x20to\x20login\x20with\x20TVox\x20application','&serviceId=','&sessionId=','&data=','stringify','then','info','[%s][TVOX]\x20Request\x20sent\x20to\x20TVox:\x20%s','stop','catch','[%s][TVOX]\x20%s','isObject','[%s][TVOX]\x20Application\x20already\x20executed\x20for\x20the\x20current\x20session,\x20force\x20next'];(function(_0x215797,_0x49d505){var _0x4a3697=function(_0x23a93a){while(--_0x23a93a){_0x215797['push'](_0x215797['shift']());}};_0x4a3697(++_0x49d505);}(_0xa140,0xd2));var _0x0a14=function(_0x13ce0c,_0x3f2a0d){_0x13ce0c=_0x13ce0c-0x0;var _0x4388fb=_0xa140[_0x13ce0c];return _0x4388fb;};'use strict';var rp=require('request-promise');var logger=require('../../../../config/logger')(_0x0a14('0x0'));var _=require(_0x0a14('0x1'));var arr=[];exports['consequence']=function(_0xfc94b,_0x31f239){return function(_0x31e334){var _0x11bcf0=_0x31f239[0xa];var _0x18c58a=_0x31f239[0xb];var _0x14c2f5=_0x31f239[0xc];var _0x25f968=_0x31f239[0xd];var _0x506f77=_0x31f239[0xe];var _0x4b478f=_0x31f239[0xf]['replace'](/\n/g,_0x0a14('0x2'));var _0x59db19=_0x31f239[0x10]['replace'](/\n/g,'\x20');if(!arr[_0x0a14('0x3')](_0x18c58a)){arr[_0x0a14('0x4')](_0x18c58a);var _0x575faf=_0x31f239[0x3];var _0xd71208=_0x31f239[0x4];var _0x4b43b4=_0x31f239[0x1];var _0x5c28bb=_0x31f239[0x0];var _0x443b05={};_0x443b05[_0x0a14('0x5')]=_0x31f239[0x8]+'?params='+_0x14c2f5+'|'+_0x11bcf0+'|'+_0x25f968+'|'+_0x18c58a+'|'+_0x506f77;_0x443b05[_0x0a14('0x6')]=_0x31f239[0x7]+_0x0a14('0x7')+_0x14c2f5+'|'+_0x11bcf0+'|'+_0x25f968+'|'+_0x18c58a+'|'+_0x506f77+'|'+_0x4b478f+'|'+_0x59db19;_0x443b05['title']=_0x31f239[0x9];var _0x400a04={};_0x400a04['jsonrpc']=_0x0a14('0x8');_0x400a04[_0x0a14('0x9')]=_0x0a14('0xa');var _0x25f543=[];_0x25f543['push'](_0x31f239[0x2]);_0x25f543[_0x0a14('0x4')](_0x31f239[0x5]);_0x25f543[_0x0a14('0x4')](_0x31f239[0x6]);_0x400a04[_0x0a14('0xb')]=_0x25f543;_0x400a04['id']=0x1;var _0x4b9448=JSON['stringify'](_0x400a04);var _0x4448e6={'encoding':_0x0a14('0xc'),'method':'POST','timeout':0x2710,'url':_0x575faf,'headers':{'Content-Type':_0x0a14('0xd')},'body':_0x4b9448};return rp(_0x4448e6)['then'](function(_0x3b8a00){const _0x8c1ef5=JSON[_0x0a14('0xe')](_0x3b8a00);if(!_0x8c1ef5[_0x0a14('0xf')][_0x0a14('0x10')]){throw new Error(_0x0a14('0x11'));}var _0xeb369c=_0x18c58a;var _0x48a774='channelId='+_0x4b43b4+_0x0a14('0x12')+_0x5c28bb+_0x0a14('0x13')+_0xeb369c+_0x0a14('0x14')+JSON[_0x0a14('0x15')](_0x443b05);var _0x3fdea5=_0xd71208+'?'+_0x48a774;return rp(_0x3fdea5);})[_0x0a14('0x16')](function(_0x3a277b){logger[_0x0a14('0x17')](_0x0a14('0x18'),_0xfc94b,_0x3a277b);_0x31e334[_0x0a14('0x19')]();})[_0x0a14('0x1a')](function(_0x1f3eaa){logger['error'](_0x0a14('0x1b'),_0xfc94b,_[_0x0a14('0x1c')](_0x1f3eaa)?JSON['stringify'](_0x1f3eaa):_0x1f3eaa);_0x31e334['stop']();});}else{logger['info'](_0x0a14('0x1d'),_0xfc94b);_0x31e334['next']();}};};
\ No newline at end of file