Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / analyticFieldReport / analyticFieldReport.rpc.js
index ce48a00..7b8b8ae 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4cc6=['catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','http','request','then','AnalyticFieldReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticFieldReport,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result'];(function(_0xae7c2f,_0xf31e04){var _0x5d7001=function(_0x4eeadb){while(--_0x4eeadb){_0xae7c2f['push'](_0xae7c2f['shift']());}};_0x5d7001(++_0xf31e04);}(_0x4cc6,0xd9));var _0x64cc=function(_0x3e112d,_0x2bb132){_0x3e112d=_0x3e112d-0x0;var _0x531c31=_0x4cc6[_0x3e112d];return _0x531c31;};'use strict';var _=require(_0x64cc('0x0'));var util=require(_0x64cc('0x1'));var moment=require(_0x64cc('0x2'));var BPromise=require(_0x64cc('0x3'));var rs=require(_0x64cc('0x4'));var fs=require('fs');var Redis=require(_0x64cc('0x5'));var db=require(_0x64cc('0x6'))['db'];var utils=require(_0x64cc('0x7'));var logger=require('../../config/logger')(_0x64cc('0x8'));var config=require(_0x64cc('0x9'));var jayson=require(_0x64cc('0xa'));var client=jayson['client'][_0x64cc('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x254374,_0x227e0d,_0x7c0aa4){return new BPromise(function(_0x346368,_0x40ce39){return client[_0x64cc('0xc')](_0x254374,_0x7c0aa4)[_0x64cc('0xd')](function(_0x233659){logger['info'](_0x64cc('0xe'),_0x227e0d,_0x64cc('0xf'));logger[_0x64cc('0x10')](_0x64cc('0x11'),_0x227e0d,_0x64cc('0xf'),JSON[_0x64cc('0x12')](_0x233659));if(_0x233659[_0x64cc('0x13')]){if(_0x233659['error']['code']===0x1f4){logger[_0x64cc('0x13')](_0x64cc('0xe'),_0x227e0d,_0x233659[_0x64cc('0x13')]['message']);return _0x40ce39(_0x233659[_0x64cc('0x13')][_0x64cc('0x14')]);}logger['error'](_0x64cc('0xe'),_0x227e0d,_0x233659[_0x64cc('0x13')][_0x64cc('0x14')]);return _0x346368(_0x233659['error'][_0x64cc('0x14')]);}else{logger[_0x64cc('0x15')](_0x64cc('0xe'),_0x227e0d,_0x64cc('0xf'));_0x346368(_0x233659[_0x64cc('0x16')][_0x64cc('0x14')]);}})[_0x64cc('0x17')](function(_0x3562c7){logger[_0x64cc('0x13')]('AnalyticFieldReport,\x20%s,\x20%s',_0x227e0d,_0x3562c7);_0x40ce39(_0x3562c7);});});}
\ No newline at end of file
+var _0x4f7d=['message','result','catch','lodash','moment','bluebird','ioredis','../../config/logger','../../config/environment','jayson/promise','client','request','then','info','AnalyticFieldReport,\x20%s,\x20%s','debug','AnalyticFieldReport,\x20%s,\x20%s,\x20%s','error','code'];(function(_0x35e768,_0xbe0d60){var _0x58cc5f=function(_0x1b12fb){while(--_0x1b12fb){_0x35e768['push'](_0x35e768['shift']());}};_0x58cc5f(++_0xbe0d60);}(_0x4f7d,0x1f1));var _0xd4f7=function(_0x27b920,_0x2d5b4e){_0x27b920=_0x27b920-0x0;var _0x37c55e=_0x4f7d[_0x27b920];return _0x37c55e;};'use strict';var _=require(_0xd4f7('0x0'));var util=require('util');var moment=require(_0xd4f7('0x1'));var BPromise=require(_0xd4f7('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xd4f7('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xd4f7('0x4'))('rpc');var config=require(_0xd4f7('0x5'));var jayson=require(_0xd4f7('0x6'));var client=jayson[_0xd4f7('0x7')]['http']({'port':0x232a});function respondWithRpcPromise(_0x48d64a,_0x2aa853,_0x1f7413){return new BPromise(function(_0x4b9852,_0xc0a275){return client[_0xd4f7('0x8')](_0x48d64a,_0x1f7413)[_0xd4f7('0x9')](function(_0x55ad16){logger[_0xd4f7('0xa')](_0xd4f7('0xb'),_0x2aa853,'request\x20sent');logger[_0xd4f7('0xc')](_0xd4f7('0xd'),_0x2aa853,'request\x20sent',JSON['stringify'](_0x55ad16));if(_0x55ad16[_0xd4f7('0xe')]){if(_0x55ad16[_0xd4f7('0xe')][_0xd4f7('0xf')]===0x1f4){logger['error'](_0xd4f7('0xb'),_0x2aa853,_0x55ad16[_0xd4f7('0xe')][_0xd4f7('0x10')]);return _0xc0a275(_0x55ad16[_0xd4f7('0xe')][_0xd4f7('0x10')]);}logger['error']('AnalyticFieldReport,\x20%s,\x20%s',_0x2aa853,_0x55ad16['error'][_0xd4f7('0x10')]);return _0x4b9852(_0x55ad16[_0xd4f7('0xe')][_0xd4f7('0x10')]);}else{logger[_0xd4f7('0xa')](_0xd4f7('0xb'),_0x2aa853,'request\x20sent');_0x4b9852(_0x55ad16[_0xd4f7('0x11')]['message']);}})[_0xd4f7('0x12')](function(_0x46ecce){logger[_0xd4f7('0xe')]('AnalyticFieldReport,\x20%s,\x20%s',_0x2aa853,_0x46ecce);_0xc0a275(_0x46ecce);});});}
\ No newline at end of file