Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.rpc.js
index bf998e6..4459597 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x087b=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','VoiceQueuesLog,\x20%s,\x20%s,\x20%s','stringify','error','VoiceQueuesLog,\x20%s,\x20%s','message','result','lodash','util','randomstring','../../mysqldb'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x087b,0x11a));var _0xb087=function(_0x476bf4,_0x2a3755){_0x476bf4=_0x476bf4-0x0;var _0x788ffe=_0x087b[_0x476bf4];return _0x788ffe;};'use strict';var _=require(_0xb087('0x0'));var util=require(_0xb087('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xb087('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb087('0x3'))['db'];var utils=require(_0xb087('0x4'));var logger=require(_0xb087('0x5'))(_0xb087('0x6'));var config=require(_0xb087('0x7'));var jayson=require(_0xb087('0x8'));var client=jayson[_0xb087('0x9')][_0xb087('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xecf080,_0x36ac30,_0x3cebbf){return new BPromise(function(_0x6d83fb,_0x1dbe9f){return client[_0xb087('0xb')](_0xecf080,_0x3cebbf)[_0xb087('0xc')](function(_0x23cdd7){logger[_0xb087('0xd')]('VoiceQueuesLog,\x20%s,\x20%s',_0x36ac30,_0xb087('0xe'));logger[_0xb087('0xf')](_0xb087('0x10'),_0x36ac30,_0xb087('0xe'),JSON[_0xb087('0x11')](_0x23cdd7));if(_0x23cdd7[_0xb087('0x12')]){if(_0x23cdd7[_0xb087('0x12')]['code']===0x1f4){logger[_0xb087('0x12')](_0xb087('0x13'),_0x36ac30,_0x23cdd7[_0xb087('0x12')]['message']);return _0x1dbe9f(_0x23cdd7[_0xb087('0x12')][_0xb087('0x14')]);}logger[_0xb087('0x12')](_0xb087('0x13'),_0x36ac30,_0x23cdd7[_0xb087('0x12')][_0xb087('0x14')]);return _0x6d83fb(_0x23cdd7[_0xb087('0x12')][_0xb087('0x14')]);}else{logger[_0xb087('0xd')](_0xb087('0x13'),_0x36ac30,'request\x20sent');_0x6d83fb(_0x23cdd7[_0xb087('0x15')][_0xb087('0x14')]);}})['catch'](function(_0xcc4426){logger[_0xb087('0x12')](_0xb087('0x13'),_0x36ac30,_0xcc4426);_0x1dbe9f(_0xcc4426);});});}
\ No newline at end of file
+var _0x53ed=['code','message','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','request','then','info','VoiceQueuesLog,\x20%s,\x20%s','request\x20sent','debug','VoiceQueuesLog,\x20%s,\x20%s,\x20%s','stringify','error'];(function(_0x5c4467,_0x5e22d8){var _0x3fef57=function(_0x49679b){while(--_0x49679b){_0x5c4467['push'](_0x5c4467['shift']());}};_0x3fef57(++_0x5e22d8);}(_0x53ed,0x76));var _0xd53e=function(_0x3765a0,_0x44093e){_0x3765a0=_0x3765a0-0x0;var _0x348aa3=_0x53ed[_0x3765a0];return _0x348aa3;};'use strict';var _=require(_0xd53e('0x0'));var util=require(_0xd53e('0x1'));var moment=require(_0xd53e('0x2'));var BPromise=require(_0xd53e('0x3'));var rs=require(_0xd53e('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xd53e('0x5'))['db'];var utils=require(_0xd53e('0x6'));var logger=require(_0xd53e('0x7'))(_0xd53e('0x8'));var config=require('../../config/environment');var jayson=require(_0xd53e('0x9'));var client=jayson['client'][_0xd53e('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xfc0b5a,_0x163fd1,_0x56ddc7){return new BPromise(function(_0x34a04e,_0x59f49b){return client[_0xd53e('0xb')](_0xfc0b5a,_0x56ddc7)[_0xd53e('0xc')](function(_0x51313d){logger[_0xd53e('0xd')](_0xd53e('0xe'),_0x163fd1,_0xd53e('0xf'));logger[_0xd53e('0x10')](_0xd53e('0x11'),_0x163fd1,_0xd53e('0xf'),JSON[_0xd53e('0x12')](_0x51313d));if(_0x51313d[_0xd53e('0x13')]){if(_0x51313d[_0xd53e('0x13')][_0xd53e('0x14')]===0x1f4){logger['error'](_0xd53e('0xe'),_0x163fd1,_0x51313d[_0xd53e('0x13')][_0xd53e('0x15')]);return _0x59f49b(_0x51313d[_0xd53e('0x13')][_0xd53e('0x15')]);}logger[_0xd53e('0x13')](_0xd53e('0xe'),_0x163fd1,_0x51313d[_0xd53e('0x13')][_0xd53e('0x15')]);return _0x34a04e(_0x51313d[_0xd53e('0x13')][_0xd53e('0x15')]);}else{logger[_0xd53e('0xd')](_0xd53e('0xe'),_0x163fd1,'request\x20sent');_0x34a04e(_0x51313d['result'][_0xd53e('0x15')]);}})[_0xd53e('0x16')](function(_0x461bba){logger[_0xd53e('0x13')](_0xd53e('0xe'),_0x163fd1,_0x461bba);_0x59f49b(_0x461bba);});});}
\ No newline at end of file