Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.rpc.js
index b10d747..cc5bbce 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8a54=['moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','VoiceQueuesLog,\x20%s,\x20%s,\x20%s','stringify','error','code','VoiceQueuesLog,\x20%s,\x20%s','message','catch','lodash'];(function(_0xeb2a9e,_0x4d27e1){var _0x441336=function(_0x431c2f){while(--_0x431c2f){_0xeb2a9e['push'](_0xeb2a9e['shift']());}};_0x441336(++_0x4d27e1);}(_0x8a54,0x11f));var _0x48a5=function(_0x1a9da0,_0x2ed687){_0x1a9da0=_0x1a9da0-0x0;var _0x1c853f=_0x8a54[_0x1a9da0];return _0x1c853f;};'use strict';var _=require(_0x48a5('0x0'));var util=require('util');var moment=require(_0x48a5('0x1'));var BPromise=require(_0x48a5('0x2'));var rs=require(_0x48a5('0x3'));var fs=require('fs');var Redis=require(_0x48a5('0x4'));var db=require(_0x48a5('0x5'))['db'];var utils=require(_0x48a5('0x6'));var logger=require('../../config/logger')(_0x48a5('0x7'));var config=require(_0x48a5('0x8'));var jayson=require(_0x48a5('0x9'));var client=jayson[_0x48a5('0xa')][_0x48a5('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x10fc1a,_0x22722c,_0x2d2170){return new BPromise(function(_0x32ba69,_0x146c9a){return client[_0x48a5('0xc')](_0x10fc1a,_0x2d2170)[_0x48a5('0xd')](function(_0x521a54){logger[_0x48a5('0xe')]('VoiceQueuesLog,\x20%s,\x20%s',_0x22722c,_0x48a5('0xf'));logger[_0x48a5('0x10')](_0x48a5('0x11'),_0x22722c,_0x48a5('0xf'),JSON[_0x48a5('0x12')](_0x521a54));if(_0x521a54[_0x48a5('0x13')]){if(_0x521a54[_0x48a5('0x13')][_0x48a5('0x14')]===0x1f4){logger['error'](_0x48a5('0x15'),_0x22722c,_0x521a54['error'][_0x48a5('0x16')]);return _0x146c9a(_0x521a54[_0x48a5('0x13')][_0x48a5('0x16')]);}logger[_0x48a5('0x13')](_0x48a5('0x15'),_0x22722c,_0x521a54['error'][_0x48a5('0x16')]);return _0x32ba69(_0x521a54[_0x48a5('0x13')][_0x48a5('0x16')]);}else{logger[_0x48a5('0xe')](_0x48a5('0x15'),_0x22722c,_0x48a5('0xf'));_0x32ba69(_0x521a54['result']['message']);}})[_0x48a5('0x17')](function(_0x112abc){logger[_0x48a5('0x13')](_0x48a5('0x15'),_0x22722c,_0x112abc);_0x146c9a(_0x112abc);});});}
\ 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