Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / voiceChanSpy / voiceChanSpy.rpc.js
index 25f2fd1..9a8dd3d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8a93=['message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../config/logger','../../config/environment','request','then','info','VoiceChanSpy,\x20%s,\x20%s','request\x20sent','debug','stringify','error'];(function(_0x48fd06,_0x24a5fa){var _0x5309b4=function(_0x4bf07c){while(--_0x4bf07c){_0x48fd06['push'](_0x48fd06['shift']());}};_0x5309b4(++_0x24a5fa);}(_0x8a93,0x16b));var _0x38a9=function(_0x5dde91,_0x3bb66e){_0x5dde91=_0x5dde91-0x0;var _0x402888=_0x8a93[_0x5dde91];return _0x402888;};'use strict';var _=require(_0x38a9('0x0'));var util=require(_0x38a9('0x1'));var moment=require('moment');var BPromise=require(_0x38a9('0x2'));var rs=require(_0x38a9('0x3'));var fs=require('fs');var Redis=require(_0x38a9('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x38a9('0x5'))('rpc');var config=require(_0x38a9('0x6'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x2dc64f,_0x5dce27,_0x9010c0){return new BPromise(function(_0x18d861,_0x3e017f){return client[_0x38a9('0x7')](_0x2dc64f,_0x9010c0)[_0x38a9('0x8')](function(_0x30d74f){logger[_0x38a9('0x9')](_0x38a9('0xa'),_0x5dce27,_0x38a9('0xb'));logger[_0x38a9('0xc')]('VoiceChanSpy,\x20%s,\x20%s,\x20%s',_0x5dce27,_0x38a9('0xb'),JSON[_0x38a9('0xd')](_0x30d74f));if(_0x30d74f['error']){if(_0x30d74f[_0x38a9('0xe')]['code']===0x1f4){logger[_0x38a9('0xe')]('VoiceChanSpy,\x20%s,\x20%s',_0x5dce27,_0x30d74f[_0x38a9('0xe')][_0x38a9('0xf')]);return _0x3e017f(_0x30d74f['error']['message']);}logger[_0x38a9('0xe')](_0x38a9('0xa'),_0x5dce27,_0x30d74f[_0x38a9('0xe')]['message']);return _0x18d861(_0x30d74f[_0x38a9('0xe')]['message']);}else{logger[_0x38a9('0x9')](_0x38a9('0xa'),_0x5dce27,_0x38a9('0xb'));_0x18d861(_0x30d74f[_0x38a9('0x10')][_0x38a9('0xf')]);}})[_0x38a9('0x11')](function(_0x1c3717){logger['error']('VoiceChanSpy,\x20%s,\x20%s',_0x5dce27,_0x1c3717);_0x3e017f(_0x1c3717);});});}
\ No newline at end of file
+var _0x0102=['info','VoiceChanSpy,\x20%s,\x20%s','request\x20sent','debug','VoiceChanSpy,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','util','moment','bluebird','randomstring','../../config/environment','jayson/promise','client','http','then'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x0102,0x186));var _0x2010=function(_0x457e81,_0x50e9d8){_0x457e81=_0x457e81-0x0;var _0x1a6ca8=_0x0102[_0x457e81];return _0x1a6ca8;};'use strict';var _=require('lodash');var util=require(_0x2010('0x0'));var moment=require(_0x2010('0x1'));var BPromise=require(_0x2010('0x2'));var rs=require(_0x2010('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')('rpc');var config=require(_0x2010('0x4'));var jayson=require(_0x2010('0x5'));var client=jayson[_0x2010('0x6')][_0x2010('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x4eeb67,_0x453fc0,_0x495d98){return new BPromise(function(_0x4728c0,_0x160e41){return client['request'](_0x4eeb67,_0x495d98)[_0x2010('0x8')](function(_0x3c2d98){logger[_0x2010('0x9')](_0x2010('0xa'),_0x453fc0,_0x2010('0xb'));logger[_0x2010('0xc')](_0x2010('0xd'),_0x453fc0,_0x2010('0xb'),JSON[_0x2010('0xe')](_0x3c2d98));if(_0x3c2d98[_0x2010('0xf')]){if(_0x3c2d98[_0x2010('0xf')][_0x2010('0x10')]===0x1f4){logger[_0x2010('0xf')](_0x2010('0xa'),_0x453fc0,_0x3c2d98[_0x2010('0xf')][_0x2010('0x11')]);return _0x160e41(_0x3c2d98['error']['message']);}logger[_0x2010('0xf')](_0x2010('0xa'),_0x453fc0,_0x3c2d98[_0x2010('0xf')][_0x2010('0x11')]);return _0x4728c0(_0x3c2d98[_0x2010('0xf')][_0x2010('0x11')]);}else{logger['info'](_0x2010('0xa'),_0x453fc0,_0x2010('0xb'));_0x4728c0(_0x3c2d98['result'][_0x2010('0x11')]);}})[_0x2010('0x12')](function(_0x410889){logger[_0x2010('0xf')](_0x2010('0xa'),_0x453fc0,_0x410889);_0x160e41(_0x410889);});});}
\ No newline at end of file