Built motion from commit f3da74b7.|2.5.36
[motion2.git] / server / api / chatTransferReport / chatTransferReport.rpc.js
index cbcbb18..9de33f5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xeaa4=['stringify','error','code','ChatTransferReport,\x20%s,\x20%s','message','info','result','catch','lodash','util','moment','bluebird','../../mysqldb','../../config/logger','rpc','client','http','request','then','request\x20sent','debug'];(function(_0x39520d,_0x154825){var _0xdd35ff=function(_0xbfa43e){while(--_0xbfa43e){_0x39520d['push'](_0x39520d['shift']());}};_0xdd35ff(++_0x154825);}(_0xeaa4,0x104));var _0x4eaa=function(_0x34159c,_0x1f3bb3){_0x34159c=_0x34159c-0x0;var _0x28f809=_0xeaa4[_0x34159c];return _0x28f809;};'use strict';var _=require(_0x4eaa('0x0'));var util=require(_0x4eaa('0x1'));var moment=require(_0x4eaa('0x2'));var BPromise=require(_0x4eaa('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x4eaa('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x4eaa('0x5'))(_0x4eaa('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x4eaa('0x7')][_0x4eaa('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x29b55d,_0x50fa95,_0x21dec0){return new BPromise(function(_0x3e60e9,_0x53cc38){return client[_0x4eaa('0x9')](_0x29b55d,_0x21dec0)[_0x4eaa('0xa')](function(_0x142a79){logger['info']('ChatTransferReport,\x20%s,\x20%s',_0x50fa95,_0x4eaa('0xb'));logger[_0x4eaa('0xc')]('ChatTransferReport,\x20%s,\x20%s,\x20%s',_0x50fa95,_0x4eaa('0xb'),JSON[_0x4eaa('0xd')](_0x142a79));if(_0x142a79[_0x4eaa('0xe')]){if(_0x142a79[_0x4eaa('0xe')][_0x4eaa('0xf')]===0x1f4){logger[_0x4eaa('0xe')](_0x4eaa('0x10'),_0x50fa95,_0x142a79[_0x4eaa('0xe')][_0x4eaa('0x11')]);return _0x53cc38(_0x142a79[_0x4eaa('0xe')][_0x4eaa('0x11')]);}logger['error']('ChatTransferReport,\x20%s,\x20%s',_0x50fa95,_0x142a79[_0x4eaa('0xe')][_0x4eaa('0x11')]);return _0x3e60e9(_0x142a79[_0x4eaa('0xe')]['message']);}else{logger[_0x4eaa('0x12')]('ChatTransferReport,\x20%s,\x20%s',_0x50fa95,_0x4eaa('0xb'));_0x3e60e9(_0x142a79[_0x4eaa('0x13')][_0x4eaa('0x11')]);}})[_0x4eaa('0x14')](function(_0x1cbf51){logger[_0x4eaa('0xe')](_0x4eaa('0x10'),_0x50fa95,_0x1cbf51);_0x53cc38(_0x1cbf51);});});}
\ No newline at end of file
+var _0xb101=['../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','http','request','then','info','stringify','error','message','ChatTransferReport,\x20%s,\x20%s','result','moment','bluebird','randomstring','ioredis'];(function(_0xfac4f8,_0x16f091){var _0x4c2a2e=function(_0x44bb18){while(--_0x44bb18){_0xfac4f8['push'](_0xfac4f8['shift']());}};_0x4c2a2e(++_0x16f091);}(_0xb101,0x188));var _0x1b10=function(_0x195054,_0x38c4ba){_0x195054=_0x195054-0x0;var _0x65352f=_0xb101[_0x195054];return _0x65352f;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x1b10('0x0'));var BPromise=require(_0x1b10('0x1'));var rs=require(_0x1b10('0x2'));var fs=require('fs');var Redis=require(_0x1b10('0x3'));var db=require(_0x1b10('0x4'))['db'];var utils=require(_0x1b10('0x5'));var logger=require('../../config/logger')(_0x1b10('0x6'));var config=require(_0x1b10('0x7'));var jayson=require(_0x1b10('0x8'));var client=jayson['client'][_0x1b10('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x59b560,_0xfb586b,_0x48f6ef){return new BPromise(function(_0x2c0131,_0x4df364){return client[_0x1b10('0xa')](_0x59b560,_0x48f6ef)[_0x1b10('0xb')](function(_0x2b6336){logger[_0x1b10('0xc')]('ChatTransferReport,\x20%s,\x20%s',_0xfb586b,'request\x20sent');logger['debug']('ChatTransferReport,\x20%s,\x20%s,\x20%s',_0xfb586b,'request\x20sent',JSON[_0x1b10('0xd')](_0x2b6336));if(_0x2b6336[_0x1b10('0xe')]){if(_0x2b6336[_0x1b10('0xe')]['code']===0x1f4){logger[_0x1b10('0xe')]('ChatTransferReport,\x20%s,\x20%s',_0xfb586b,_0x2b6336[_0x1b10('0xe')][_0x1b10('0xf')]);return _0x4df364(_0x2b6336['error']['message']);}logger[_0x1b10('0xe')]('ChatTransferReport,\x20%s,\x20%s',_0xfb586b,_0x2b6336[_0x1b10('0xe')][_0x1b10('0xf')]);return _0x2c0131(_0x2b6336['error'][_0x1b10('0xf')]);}else{logger[_0x1b10('0xc')](_0x1b10('0x10'),_0xfb586b,'request\x20sent');_0x2c0131(_0x2b6336[_0x1b10('0x11')][_0x1b10('0xf')]);}})['catch'](function(_0x6dcbfa){logger['error'](_0x1b10('0x10'),_0xfb586b,_0x6dcbfa);_0x4df364(_0x6dcbfa);});});}
\ No newline at end of file