X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FvoiceQueuesLog%2FvoiceQueuesLog.rpc.js;h=abd1994ea263f3ae7ff1bf1a27f6ee510f59b00b;hb=3a60439f3b647e2a7df8ce941316640492032b43;hp=9a563790a8c91f4df22fe15cac56332e4f571017;hpb=1a8d267e76bee6a69bd79c66b9e5eb5d9e44c796;p=motion2.git diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.rpc.js b/server/api/voiceQueuesLog/voiceQueuesLog.rpc.js index 9a56379..abd1994 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.rpc.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.rpc.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x7834=['then','VoiceQueuesLog,\x20%s,\x20%s','request\x20sent','debug','VoiceQueuesLog,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','lodash','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request'];(function(_0xf48244,_0x115cad){var _0x37d890=function(_0x19a886){while(--_0x19a886){_0xf48244['push'](_0xf48244['shift']());}};_0x37d890(++_0x115cad);}(_0x7834,0x13f));var _0x4783=function(_0x2020ea,_0x26fc4f){_0x2020ea=_0x2020ea-0x0;var _0x3657fe=_0x7834[_0x2020ea];return _0x3657fe;};'use strict';var _=require(_0x4783('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x4783('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x4783('0x2'));var db=require(_0x4783('0x3'))['db'];var utils=require(_0x4783('0x4'));var logger=require(_0x4783('0x5'))(_0x4783('0x6'));var config=require(_0x4783('0x7'));var jayson=require(_0x4783('0x8'));var client=jayson['client'][_0x4783('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xf8c030,_0x518da8,_0x2dcf46){return new BPromise(function(_0x16c83e,_0x36c0a7){return client[_0x4783('0xa')](_0xf8c030,_0x2dcf46)[_0x4783('0xb')](function(_0x1f8b29){logger['info'](_0x4783('0xc'),_0x518da8,_0x4783('0xd'));logger[_0x4783('0xe')](_0x4783('0xf'),_0x518da8,_0x4783('0xd'),JSON[_0x4783('0x10')](_0x1f8b29));if(_0x1f8b29[_0x4783('0x11')]){if(_0x1f8b29['error']['code']===0x1f4){logger[_0x4783('0x11')](_0x4783('0xc'),_0x518da8,_0x1f8b29['error'][_0x4783('0x12')]);return _0x36c0a7(_0x1f8b29['error'][_0x4783('0x12')]);}logger[_0x4783('0x11')](_0x4783('0xc'),_0x518da8,_0x1f8b29[_0x4783('0x11')][_0x4783('0x12')]);return _0x16c83e(_0x1f8b29['error'][_0x4783('0x12')]);}else{logger[_0x4783('0x13')](_0x4783('0xc'),_0x518da8,_0x4783('0xd'));_0x16c83e(_0x1f8b29[_0x4783('0x14')][_0x4783('0x12')]);}})[_0x4783('0x15')](function(_0x40dbcf){logger[_0x4783('0x11')](_0x4783('0xc'),_0x518da8,_0x40dbcf);_0x36c0a7(_0x40dbcf);});});} \ No newline at end of file +var _0x34e1=['client','http','request','then','VoiceQueuesLog,\x20%s,\x20%s','request\x20sent','debug','VoiceQueuesLog,\x20%s,\x20%s,\x20%s','error','code','message','info','result','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment'];(function(_0x39efbf,_0x118364){var _0xcbd510=function(_0x4e152f){while(--_0x4e152f){_0x39efbf['push'](_0x39efbf['shift']());}};_0xcbd510(++_0x118364);}(_0x34e1,0xdc));var _0x134e=function(_0x1301b4,_0x2fb602){_0x1301b4=_0x1301b4-0x0;var _0x4252dc=_0x34e1[_0x1301b4];return _0x4252dc;};'use strict';var _=require(_0x134e('0x0'));var util=require(_0x134e('0x1'));var moment=require(_0x134e('0x2'));var BPromise=require(_0x134e('0x3'));var rs=require(_0x134e('0x4'));var fs=require('fs');var Redis=require(_0x134e('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x134e('0x6'));var logger=require(_0x134e('0x7'))(_0x134e('0x8'));var config=require(_0x134e('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x134e('0xa')][_0x134e('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x26bef8,_0x8cc6b6,_0xec5fd1){return new BPromise(function(_0x1dd89b,_0x5e1bec){return client[_0x134e('0xc')](_0x26bef8,_0xec5fd1)[_0x134e('0xd')](function(_0x3c481a){logger['info'](_0x134e('0xe'),_0x8cc6b6,_0x134e('0xf'));logger[_0x134e('0x10')](_0x134e('0x11'),_0x8cc6b6,'request\x20sent',JSON['stringify'](_0x3c481a));if(_0x3c481a[_0x134e('0x12')]){if(_0x3c481a[_0x134e('0x12')][_0x134e('0x13')]===0x1f4){logger[_0x134e('0x12')]('VoiceQueuesLog,\x20%s,\x20%s',_0x8cc6b6,_0x3c481a['error']['message']);return _0x5e1bec(_0x3c481a[_0x134e('0x12')][_0x134e('0x14')]);}logger[_0x134e('0x12')](_0x134e('0xe'),_0x8cc6b6,_0x3c481a[_0x134e('0x12')][_0x134e('0x14')]);return _0x1dd89b(_0x3c481a[_0x134e('0x12')][_0x134e('0x14')]);}else{logger[_0x134e('0x15')](_0x134e('0xe'),_0x8cc6b6,'request\x20sent');_0x1dd89b(_0x3c481a[_0x134e('0x16')][_0x134e('0x14')]);}})['catch'](function(_0x281297){logger[_0x134e('0x12')](_0x134e('0xe'),_0x8cc6b6,_0x281297);_0x5e1bec(_0x281297);});});} \ No newline at end of file