Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.rpc.js
index 4ffb4e2..cc5bbce 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3f8c=['VoiceQueuesLog,\x20%s,\x20%s','request\x20sent','VoiceQueuesLog,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','moment','bluebird','randomstring','ioredis','jayson/promise','client','http','request','then','info'];(function(_0x340f77,_0x8d1b86){var _0x5e82a0=function(_0xe1f6a5){while(--_0xe1f6a5){_0x340f77['push'](_0x340f77['shift']());}};_0x5e82a0(++_0x8d1b86);}(_0x3f8c,0x104));var _0xc3f8=function(_0x45a785,_0x2a292b){_0x45a785=_0x45a785-0x0;var _0x2bc94a=_0x3f8c[_0x45a785];return _0x2bc94a;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xc3f8('0x0'));var BPromise=require(_0xc3f8('0x1'));var rs=require(_0xc3f8('0x2'));var fs=require('fs');var Redis=require(_0xc3f8('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')('rpc');var config=require('../../config/environment');var jayson=require(_0xc3f8('0x4'));var client=jayson[_0xc3f8('0x5')][_0xc3f8('0x6')]({'port':0x232a});function respondWithRpcPromise(_0x44c25d,_0x2bbaa5,_0x15512a){return new BPromise(function(_0x51093a,_0x28397e){return client[_0xc3f8('0x7')](_0x44c25d,_0x15512a)[_0xc3f8('0x8')](function(_0x3c340c){logger[_0xc3f8('0x9')](_0xc3f8('0xa'),_0x2bbaa5,_0xc3f8('0xb'));logger['debug'](_0xc3f8('0xc'),_0x2bbaa5,_0xc3f8('0xb'),JSON[_0xc3f8('0xd')](_0x3c340c));if(_0x3c340c[_0xc3f8('0xe')]){if(_0x3c340c['error'][_0xc3f8('0xf')]===0x1f4){logger[_0xc3f8('0xe')](_0xc3f8('0xa'),_0x2bbaa5,_0x3c340c[_0xc3f8('0xe')]['message']);return _0x28397e(_0x3c340c[_0xc3f8('0xe')][_0xc3f8('0x10')]);}logger[_0xc3f8('0xe')](_0xc3f8('0xa'),_0x2bbaa5,_0x3c340c[_0xc3f8('0xe')][_0xc3f8('0x10')]);return _0x51093a(_0x3c340c[_0xc3f8('0xe')][_0xc3f8('0x10')]);}else{logger[_0xc3f8('0x9')](_0xc3f8('0xa'),_0x2bbaa5,_0xc3f8('0xb'));_0x51093a(_0x3c340c[_0xc3f8('0x11')][_0xc3f8('0x10')]);}})['catch'](function(_0x14b3ed){logger['error']('VoiceQueuesLog,\x20%s,\x20%s',_0x2bbaa5,_0x14b3ed);_0x28397e(_0x14b3ed);});});}
\ No newline at end of file
+var _0xfa20=['info','VoiceQueuesLog,\x20%s,\x20%s','request\x20sent','VoiceQueuesLog,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then'];(function(_0x4257cb,_0x429557){var _0x43af2a=function(_0x78dd98){while(--_0x78dd98){_0x4257cb['push'](_0x4257cb['shift']());}};_0x43af2a(++_0x429557);}(_0xfa20,0x141));var _0x0fa2=function(_0x5bdb83,_0x3605de){_0x5bdb83=_0x5bdb83-0x0;var _0x1986bb=_0xfa20[_0x5bdb83];return _0x1986bb;};'use strict';var _=require(_0x0fa2('0x0'));var util=require(_0x0fa2('0x1'));var moment=require(_0x0fa2('0x2'));var BPromise=require(_0x0fa2('0x3'));var rs=require(_0x0fa2('0x4'));var fs=require('fs');var Redis=require(_0x0fa2('0x5'));var db=require(_0x0fa2('0x6'))['db'];var utils=require(_0x0fa2('0x7'));var logger=require(_0x0fa2('0x8'))(_0x0fa2('0x9'));var config=require(_0x0fa2('0xa'));var jayson=require('jayson/promise');var client=jayson[_0x0fa2('0xb')][_0x0fa2('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x59b8ad,_0xf03dd3,_0x3fde44){return new BPromise(function(_0x1f3223,_0x11979c){return client[_0x0fa2('0xd')](_0x59b8ad,_0x3fde44)[_0x0fa2('0xe')](function(_0x3ec7f3){logger[_0x0fa2('0xf')](_0x0fa2('0x10'),_0xf03dd3,_0x0fa2('0x11'));logger['debug'](_0x0fa2('0x12'),_0xf03dd3,_0x0fa2('0x11'),JSON[_0x0fa2('0x13')](_0x3ec7f3));if(_0x3ec7f3[_0x0fa2('0x14')]){if(_0x3ec7f3[_0x0fa2('0x14')][_0x0fa2('0x15')]===0x1f4){logger[_0x0fa2('0x14')](_0x0fa2('0x10'),_0xf03dd3,_0x3ec7f3['error'][_0x0fa2('0x16')]);return _0x11979c(_0x3ec7f3['error'][_0x0fa2('0x16')]);}logger['error']('VoiceQueuesLog,\x20%s,\x20%s',_0xf03dd3,_0x3ec7f3['error'][_0x0fa2('0x16')]);return _0x1f3223(_0x3ec7f3[_0x0fa2('0x14')][_0x0fa2('0x16')]);}else{logger[_0x0fa2('0xf')](_0x0fa2('0x10'),_0xf03dd3,_0x0fa2('0x11'));_0x1f3223(_0x3ec7f3[_0x0fa2('0x17')][_0x0fa2('0x16')]);}})['catch'](function(_0x3cf25f){logger[_0x0fa2('0x14')](_0x0fa2('0x10'),_0xf03dd3,_0x3cf25f);_0x11979c(_0x3cf25f);});});}
\ No newline at end of file