Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / chatTransferReport / chatTransferReport.rpc.js
index cf6afbe..33cc195 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4f6d=['randomstring','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','ChatTransferReport,\x20%s,\x20%s','debug','ChatTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','info','result','catch','util','moment','bluebird'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x4f6d,0x1e0));var _0xd4f6=function(_0x21a427,_0x96292){_0x21a427=_0x21a427-0x0;var _0x5942b4=_0x4f6d[_0x21a427];return _0x5942b4;};'use strict';var _=require('lodash');var util=require(_0xd4f6('0x0'));var moment=require(_0xd4f6('0x1'));var BPromise=require(_0xd4f6('0x2'));var rs=require(_0xd4f6('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xd4f6('0x4'));var logger=require(_0xd4f6('0x5'))(_0xd4f6('0x6'));var config=require(_0xd4f6('0x7'));var jayson=require(_0xd4f6('0x8'));var client=jayson[_0xd4f6('0x9')][_0xd4f6('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x10aef0,_0x4c9ede,_0x1d0f49){return new BPromise(function(_0x28db95,_0x1192e7){return client[_0xd4f6('0xb')](_0x10aef0,_0x1d0f49)[_0xd4f6('0xc')](function(_0x3aab2d){logger['info'](_0xd4f6('0xd'),_0x4c9ede,'request\x20sent');logger[_0xd4f6('0xe')](_0xd4f6('0xf'),_0x4c9ede,_0xd4f6('0x10'),JSON[_0xd4f6('0x11')](_0x3aab2d));if(_0x3aab2d[_0xd4f6('0x12')]){if(_0x3aab2d[_0xd4f6('0x12')]['code']===0x1f4){logger['error'](_0xd4f6('0xd'),_0x4c9ede,_0x3aab2d[_0xd4f6('0x12')][_0xd4f6('0x13')]);return _0x1192e7(_0x3aab2d['error'][_0xd4f6('0x13')]);}logger[_0xd4f6('0x12')]('ChatTransferReport,\x20%s,\x20%s',_0x4c9ede,_0x3aab2d['error'][_0xd4f6('0x13')]);return _0x28db95(_0x3aab2d['error'][_0xd4f6('0x13')]);}else{logger[_0xd4f6('0x14')](_0xd4f6('0xd'),_0x4c9ede,'request\x20sent');_0x28db95(_0x3aab2d[_0xd4f6('0x15')][_0xd4f6('0x13')]);}})[_0xd4f6('0x16')](function(_0x47cb12){logger[_0xd4f6('0x12')](_0xd4f6('0xd'),_0x4c9ede,_0x47cb12);_0x1192e7(_0x47cb12);});});}
\ No newline at end of file
+var _0xcde9=['../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','request','then','info','ChatTransferReport,\x20%s,\x20%s','request\x20sent','ChatTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','randomstring','ioredis'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xcde9,0x10d));var _0x9cde=function(_0x4886bf,_0x450fc6){_0x4886bf=_0x4886bf-0x0;var _0x2a1fb5=_0xcde9[_0x4886bf];return _0x2a1fb5;};'use strict';var _=require(_0x9cde('0x0'));var util=require(_0x9cde('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x9cde('0x2'));var fs=require('fs');var Redis=require(_0x9cde('0x3'));var db=require(_0x9cde('0x4'))['db'];var utils=require(_0x9cde('0x5'));var logger=require('../../config/logger')(_0x9cde('0x6'));var config=require(_0x9cde('0x7'));var jayson=require(_0x9cde('0x8'));var client=jayson[_0x9cde('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x29512c,_0x182969,_0x11500d){return new BPromise(function(_0x5d61f5,_0x210873){return client[_0x9cde('0xa')](_0x29512c,_0x11500d)[_0x9cde('0xb')](function(_0x1a7708){logger[_0x9cde('0xc')](_0x9cde('0xd'),_0x182969,_0x9cde('0xe'));logger['debug'](_0x9cde('0xf'),_0x182969,_0x9cde('0xe'),JSON[_0x9cde('0x10')](_0x1a7708));if(_0x1a7708['error']){if(_0x1a7708[_0x9cde('0x11')][_0x9cde('0x12')]===0x1f4){logger[_0x9cde('0x11')](_0x9cde('0xd'),_0x182969,_0x1a7708['error']['message']);return _0x210873(_0x1a7708[_0x9cde('0x11')][_0x9cde('0x13')]);}logger['error'](_0x9cde('0xd'),_0x182969,_0x1a7708[_0x9cde('0x11')][_0x9cde('0x13')]);return _0x5d61f5(_0x1a7708[_0x9cde('0x11')]['message']);}else{logger[_0x9cde('0xc')](_0x9cde('0xd'),_0x182969,'request\x20sent');_0x5d61f5(_0x1a7708['result'][_0x9cde('0x13')]);}})[_0x9cde('0x14')](function(_0x4a62eb){logger['error'](_0x9cde('0xd'),_0x182969,_0x4a62eb);_0x210873(_0x4a62eb);});});}
\ No newline at end of file