Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / chatTransferReport / chatTransferReport.rpc.js
index b20c68d..5fd6201 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x757b=['then','info','ChatTransferReport,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','lodash','util','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http','request'];(function(_0x2e61dd,_0x5131b7){var _0x41f98c=function(_0x55b2e8){while(--_0x55b2e8){_0x2e61dd['push'](_0x2e61dd['shift']());}};_0x41f98c(++_0x5131b7);}(_0x757b,0x88));var _0xb757=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x757b[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xb757('0x0'));var util=require(_0xb757('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xb757('0x2'));var fs=require('fs');var Redis=require(_0xb757('0x3'));var db=require(_0xb757('0x4'))['db'];var utils=require(_0xb757('0x5'));var logger=require(_0xb757('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0xb757('0x7'));var client=jayson[_0xb757('0x8')][_0xb757('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x535a6a,_0x2bce4b,_0x456493){return new BPromise(function(_0x11a6ba,_0x4d77d8){return client[_0xb757('0xa')](_0x535a6a,_0x456493)[_0xb757('0xb')](function(_0x3d184f){logger[_0xb757('0xc')](_0xb757('0xd'),_0x2bce4b,_0xb757('0xe'));logger['debug']('ChatTransferReport,\x20%s,\x20%s,\x20%s',_0x2bce4b,_0xb757('0xe'),JSON[_0xb757('0xf')](_0x3d184f));if(_0x3d184f['error']){if(_0x3d184f[_0xb757('0x10')][_0xb757('0x11')]===0x1f4){logger[_0xb757('0x10')](_0xb757('0xd'),_0x2bce4b,_0x3d184f[_0xb757('0x10')][_0xb757('0x12')]);return _0x4d77d8(_0x3d184f[_0xb757('0x10')][_0xb757('0x12')]);}logger[_0xb757('0x10')](_0xb757('0xd'),_0x2bce4b,_0x3d184f[_0xb757('0x10')][_0xb757('0x12')]);return _0x11a6ba(_0x3d184f['error'][_0xb757('0x12')]);}else{logger[_0xb757('0xc')]('ChatTransferReport,\x20%s,\x20%s',_0x2bce4b,_0xb757('0xe'));_0x11a6ba(_0x3d184f[_0xb757('0x13')][_0xb757('0x12')]);}})[_0xb757('0x14')](function(_0x2256c0){logger[_0xb757('0x10')]('ChatTransferReport,\x20%s,\x20%s',_0x2bce4b,_0x2256c0);_0x4d77d8(_0x2256c0);});});}
\ No newline at end of file
+var _0x1f77=['debug','ChatTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','message','result','lodash','util','moment','bluebird','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','ChatTransferReport,\x20%s,\x20%s','request\x20sent'];(function(_0x50a0c2,_0x4befab){var _0x5ebadd=function(_0x3a3342){while(--_0x3a3342){_0x50a0c2['push'](_0x50a0c2['shift']());}};_0x5ebadd(++_0x4befab);}(_0x1f77,0x180));var _0x71f7=function(_0x3559db,_0x5a2d9b){_0x3559db=_0x3559db-0x0;var _0x404bbd=_0x1f77[_0x3559db];return _0x404bbd;};'use strict';var _=require(_0x71f7('0x0'));var util=require(_0x71f7('0x1'));var moment=require(_0x71f7('0x2'));var BPromise=require(_0x71f7('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x71f7('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x71f7('0x5'))(_0x71f7('0x6'));var config=require(_0x71f7('0x7'));var jayson=require(_0x71f7('0x8'));var client=jayson[_0x71f7('0x9')][_0x71f7('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x323c64,_0x5f443c,_0x2c031c){return new BPromise(function(_0x51b1f4,_0x404e2c){return client['request'](_0x323c64,_0x2c031c)[_0x71f7('0xb')](function(_0x208b2b){logger[_0x71f7('0xc')](_0x71f7('0xd'),_0x5f443c,_0x71f7('0xe'));logger[_0x71f7('0xf')](_0x71f7('0x10'),_0x5f443c,_0x71f7('0xe'),JSON[_0x71f7('0x11')](_0x208b2b));if(_0x208b2b[_0x71f7('0x12')]){if(_0x208b2b[_0x71f7('0x12')]['code']===0x1f4){logger['error'](_0x71f7('0xd'),_0x5f443c,_0x208b2b[_0x71f7('0x12')][_0x71f7('0x13')]);return _0x404e2c(_0x208b2b[_0x71f7('0x12')][_0x71f7('0x13')]);}logger[_0x71f7('0x12')](_0x71f7('0xd'),_0x5f443c,_0x208b2b[_0x71f7('0x12')][_0x71f7('0x13')]);return _0x51b1f4(_0x208b2b[_0x71f7('0x12')]['message']);}else{logger[_0x71f7('0xc')](_0x71f7('0xd'),_0x5f443c,_0x71f7('0xe'));_0x51b1f4(_0x208b2b[_0x71f7('0x14')][_0x71f7('0x13')]);}})['catch'](function(_0x24ab7a){logger[_0x71f7('0x12')](_0x71f7('0xd'),_0x5f443c,_0x24ab7a);_0x404e2c(_0x24ab7a);});});}
\ No newline at end of file