Built motion from commit f3da74b7.|2.5.36
[motion2.git] / server / api / chatTransferReport / chatTransferReport.rpc.js
index 1e8efd0..cbcbb18 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x27b3=['../../config/utils','../../config/logger','rpc','jayson/promise','client','request','then','info','ChatTransferReport,\x20%s,\x20%s','request\x20sent','debug','ChatTransferReport,\x20%s,\x20%s,\x20%s','error','message','result','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x244eb9,_0x4101e9){var _0xdec048=function(_0x1222e2){while(--_0x1222e2){_0x244eb9['push'](_0x244eb9['shift']());}};_0xdec048(++_0x4101e9);}(_0x27b3,0x18b));var _0x327b=function(_0x2db63f,_0x392eda){_0x2db63f=_0x2db63f-0x0;var _0x430961=_0x27b3[_0x2db63f];return _0x430961;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x327b('0x0'));var BPromise=require(_0x327b('0x1'));var rs=require(_0x327b('0x2'));var fs=require('fs');var Redis=require(_0x327b('0x3'));var db=require(_0x327b('0x4'))['db'];var utils=require(_0x327b('0x5'));var logger=require(_0x327b('0x6'))(_0x327b('0x7'));var config=require('../../config/environment');var jayson=require(_0x327b('0x8'));var client=jayson[_0x327b('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x34af05,_0x4db019,_0x37c2a1){return new BPromise(function(_0x540d9f,_0x166c57){return client[_0x327b('0xa')](_0x34af05,_0x37c2a1)[_0x327b('0xb')](function(_0x47e804){logger[_0x327b('0xc')](_0x327b('0xd'),_0x4db019,_0x327b('0xe'));logger[_0x327b('0xf')](_0x327b('0x10'),_0x4db019,_0x327b('0xe'),JSON['stringify'](_0x47e804));if(_0x47e804[_0x327b('0x11')]){if(_0x47e804[_0x327b('0x11')]['code']===0x1f4){logger[_0x327b('0x11')](_0x327b('0xd'),_0x4db019,_0x47e804[_0x327b('0x11')]['message']);return _0x166c57(_0x47e804[_0x327b('0x11')]['message']);}logger[_0x327b('0x11')](_0x327b('0xd'),_0x4db019,_0x47e804[_0x327b('0x11')][_0x327b('0x12')]);return _0x540d9f(_0x47e804['error'][_0x327b('0x12')]);}else{logger[_0x327b('0xc')](_0x327b('0xd'),_0x4db019,_0x327b('0xe'));_0x540d9f(_0x47e804[_0x327b('0x13')][_0x327b('0x12')]);}})['catch'](function(_0x46415c){logger[_0x327b('0x11')](_0x327b('0xd'),_0x4db019,_0x46415c);_0x166c57(_0x46415c);});});}
\ No newline at end of file
+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