Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / teamVoiceQueue / teamVoiceQueue.rpc.js
index 89716fd..d7bc2c0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf94=['code','message','catch','lodash','util','moment','bluebird','ioredis','../../config/utils','rpc','../../config/environment','client','then','info','TeamVoiceQueue,\x20%s,\x20%s','request\x20sent','TeamVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error'];(function(_0x345102,_0x4295a4){var _0x2d177f=function(_0x16c75f){while(--_0x16c75f){_0x345102['push'](_0x345102['shift']());}};_0x2d177f(++_0x4295a4);}(_0xbf94,0x146));var _0x4bf9=function(_0x50a6d5,_0x86aa56){_0x50a6d5=_0x50a6d5-0x0;var _0x53e1aa=_0xbf94[_0x50a6d5];return _0x53e1aa;};'use strict';var _=require(_0x4bf9('0x0'));var util=require(_0x4bf9('0x1'));var moment=require(_0x4bf9('0x2'));var BPromise=require(_0x4bf9('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x4bf9('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x4bf9('0x5'));var logger=require('../../config/logger')(_0x4bf9('0x6'));var config=require(_0x4bf9('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x4bf9('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0xa6de4b,_0x31e3d5,_0x42283a){return new BPromise(function(_0xd169c1,_0x1da6a2){return client['request'](_0xa6de4b,_0x42283a)[_0x4bf9('0x9')](function(_0x4f0a24){logger[_0x4bf9('0xa')](_0x4bf9('0xb'),_0x31e3d5,_0x4bf9('0xc'));logger['debug'](_0x4bf9('0xd'),_0x31e3d5,'request\x20sent',JSON[_0x4bf9('0xe')](_0x4f0a24));if(_0x4f0a24[_0x4bf9('0xf')]){if(_0x4f0a24[_0x4bf9('0xf')][_0x4bf9('0x10')]===0x1f4){logger[_0x4bf9('0xf')](_0x4bf9('0xb'),_0x31e3d5,_0x4f0a24[_0x4bf9('0xf')]['message']);return _0x1da6a2(_0x4f0a24[_0x4bf9('0xf')][_0x4bf9('0x11')]);}logger[_0x4bf9('0xf')]('TeamVoiceQueue,\x20%s,\x20%s',_0x31e3d5,_0x4f0a24[_0x4bf9('0xf')][_0x4bf9('0x11')]);return _0xd169c1(_0x4f0a24[_0x4bf9('0xf')]['message']);}else{logger[_0x4bf9('0xa')](_0x4bf9('0xb'),_0x31e3d5,_0x4bf9('0xc'));_0xd169c1(_0x4f0a24['result'][_0x4bf9('0x11')]);}})[_0x4bf9('0x12')](function(_0x43a03f){logger[_0x4bf9('0xf')](_0x4bf9('0xb'),_0x31e3d5,_0x43a03f);_0x1da6a2(_0x43a03f);});});}
\ No newline at end of file
+var _0xfd28=['error','code','message','info','result','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','TeamVoiceQueue,\x20%s,\x20%s','debug','request\x20sent'];(function(_0x2806d0,_0xdb865c){var _0x21050e=function(_0x4bb95c){while(--_0x4bb95c){_0x2806d0['push'](_0x2806d0['shift']());}};_0x21050e(++_0xdb865c);}(_0xfd28,0x148));var _0x8fd2=function(_0x4de1b1,_0x18c64c){_0x4de1b1=_0x4de1b1-0x0;var _0x639f27=_0xfd28[_0x4de1b1];return _0x639f27;};'use strict';var _=require('lodash');var util=require(_0x8fd2('0x0'));var moment=require(_0x8fd2('0x1'));var BPromise=require('bluebird');var rs=require(_0x8fd2('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x8fd2('0x3'))['db'];var utils=require(_0x8fd2('0x4'));var logger=require(_0x8fd2('0x5'))('rpc');var config=require(_0x8fd2('0x6'));var jayson=require(_0x8fd2('0x7'));var client=jayson[_0x8fd2('0x8')][_0x8fd2('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2f0afc,_0x4bdc1a,_0x53d938){return new BPromise(function(_0x10fccf,_0x466c3d){return client[_0x8fd2('0xa')](_0x2f0afc,_0x53d938)['then'](function(_0x13cc69){logger['info'](_0x8fd2('0xb'),_0x4bdc1a,'request\x20sent');logger[_0x8fd2('0xc')]('TeamVoiceQueue,\x20%s,\x20%s,\x20%s',_0x4bdc1a,_0x8fd2('0xd'),JSON['stringify'](_0x13cc69));if(_0x13cc69[_0x8fd2('0xe')]){if(_0x13cc69['error'][_0x8fd2('0xf')]===0x1f4){logger[_0x8fd2('0xe')](_0x8fd2('0xb'),_0x4bdc1a,_0x13cc69[_0x8fd2('0xe')][_0x8fd2('0x10')]);return _0x466c3d(_0x13cc69[_0x8fd2('0xe')][_0x8fd2('0x10')]);}logger[_0x8fd2('0xe')](_0x8fd2('0xb'),_0x4bdc1a,_0x13cc69[_0x8fd2('0xe')][_0x8fd2('0x10')]);return _0x10fccf(_0x13cc69[_0x8fd2('0xe')][_0x8fd2('0x10')]);}else{logger[_0x8fd2('0x11')](_0x8fd2('0xb'),_0x4bdc1a,'request\x20sent');_0x10fccf(_0x13cc69[_0x8fd2('0x12')]['message']);}})['catch'](function(_0x56f75d){logger[_0x8fd2('0xe')](_0x8fd2('0xb'),_0x4bdc1a,_0x56f75d);_0x466c3d(_0x56f75d);});});}
\ No newline at end of file