Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / reportAgentPreview / reportAgentPreview.rpc.js
index f52cba7..ebe6a78 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x094c=['catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','request','then','info','debug','ReportAgentPreview,\x20%s,\x20%s,\x20%s','stringify','error','code','message','ReportAgentPreview,\x20%s,\x20%s','request\x20sent','result','CreateReportAgentPreview','create','body','options','raw'];(function(_0x14fa63,_0x44d855){var _0x438554=function(_0x2b3389){while(--_0x2b3389){_0x14fa63['push'](_0x14fa63['shift']());}};_0x438554(++_0x44d855);}(_0x094c,0x97));var _0xc094=function(_0xe8360c,_0x4b51d5){_0xe8360c=_0xe8360c-0x0;var _0x377630=_0x094c[_0xe8360c];return _0x377630;};'use strict';var _=require(_0xc094('0x0'));var util=require(_0xc094('0x1'));var moment=require(_0xc094('0x2'));var BPromise=require(_0xc094('0x3'));var rs=require(_0xc094('0x4'));var fs=require('fs');var Redis=require(_0xc094('0x5'));var db=require(_0xc094('0x6'))['db'];var utils=require(_0xc094('0x7'));var logger=require(_0xc094('0x8'))(_0xc094('0x9'));var config=require('../../config/environment');var jayson=require(_0xc094('0xa'));var client=jayson[_0xc094('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x281735,_0x10c0af,_0x550268){return new BPromise(function(_0x42381a,_0x454561){return client[_0xc094('0xc')](_0x281735,_0x550268)[_0xc094('0xd')](function(_0x583a8a){logger[_0xc094('0xe')]('ReportAgentPreview,\x20%s,\x20%s',_0x10c0af,'request\x20sent');logger[_0xc094('0xf')](_0xc094('0x10'),_0x10c0af,'request\x20sent',JSON[_0xc094('0x11')](_0x583a8a));if(_0x583a8a[_0xc094('0x12')]){if(_0x583a8a['error'][_0xc094('0x13')]===0x1f4){logger['error']('ReportAgentPreview,\x20%s,\x20%s',_0x10c0af,_0x583a8a[_0xc094('0x12')][_0xc094('0x14')]);return _0x454561(_0x583a8a[_0xc094('0x12')]['message']);}logger['error'](_0xc094('0x15'),_0x10c0af,_0x583a8a[_0xc094('0x12')]['message']);return _0x42381a(_0x583a8a['error'][_0xc094('0x14')]);}else{logger['info']('ReportAgentPreview,\x20%s,\x20%s',_0x10c0af,_0xc094('0x16'));_0x42381a(_0x583a8a[_0xc094('0x17')]['message']);}})['catch'](function(_0x27f972){logger[_0xc094('0x12')](_0xc094('0x15'),_0x10c0af,_0x27f972);_0x454561(_0x27f972);});});}exports[_0xc094('0x18')]=function(_0x34b7ed){var _0x1c8022=this;return new Promise(function(_0x53a80b,_0x5500a5){return db['ReportAgentPreview'][_0xc094('0x19')](_0x34b7ed[_0xc094('0x1a')],{'raw':_0x34b7ed['options']?_0x34b7ed[_0xc094('0x1b')][_0xc094('0x1c')]===undefined?!![]:![]:!![]})[_0xc094('0xd')](function(_0x34ebb7){logger[_0xc094('0xe')]('CreateReportAgentPreview',_0x34b7ed);logger[_0xc094('0xf')]('CreateReportAgentPreview',_0x34b7ed,JSON[_0xc094('0x11')](_0x34ebb7));_0x53a80b(_0x34ebb7);})[_0xc094('0x1d')](function(_0x5916ac){logger[_0xc094('0x12')]('CreateReportAgentPreview',_0x5916ac[_0xc094('0x14')],_0x34b7ed);_0x5500a5(_0x1c8022[_0xc094('0x12')](0x1f4,_0x5916ac[_0xc094('0x14')]));});});};
\ No newline at end of file
+var _0xe484=['info','CreateReportAgentPreview','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','ReportAgentPreview,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','ReportAgentPreview','create','body','options','raw'];(function(_0x39bcaa,_0x304e2e){var _0x1bdd4e=function(_0x441a8c){while(--_0x441a8c){_0x39bcaa['push'](_0x39bcaa['shift']());}};_0x1bdd4e(++_0x304e2e);}(_0xe484,0x1b4));var _0x4e48=function(_0x46c993,_0x2fbd91){_0x46c993=_0x46c993-0x0;var _0x3e95b2=_0xe484[_0x46c993];return _0x3e95b2;};'use strict';var _=require(_0x4e48('0x0'));var util=require(_0x4e48('0x1'));var moment=require(_0x4e48('0x2'));var BPromise=require(_0x4e48('0x3'));var rs=require(_0x4e48('0x4'));var fs=require('fs');var Redis=require(_0x4e48('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x4e48('0x6'));var logger=require(_0x4e48('0x7'))(_0x4e48('0x8'));var config=require(_0x4e48('0x9'));var jayson=require(_0x4e48('0xa'));var client=jayson[_0x4e48('0xb')][_0x4e48('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x1d0d71,_0x3681ed,_0x159375){return new BPromise(function(_0x9c21a4,_0x15a379){return client[_0x4e48('0xd')](_0x1d0d71,_0x159375)[_0x4e48('0xe')](function(_0x41cea0){logger['info'](_0x4e48('0xf'),_0x3681ed,_0x4e48('0x10'));logger[_0x4e48('0x11')]('ReportAgentPreview,\x20%s,\x20%s,\x20%s',_0x3681ed,_0x4e48('0x10'),JSON[_0x4e48('0x12')](_0x41cea0));if(_0x41cea0[_0x4e48('0x13')]){if(_0x41cea0[_0x4e48('0x13')][_0x4e48('0x14')]===0x1f4){logger[_0x4e48('0x13')](_0x4e48('0xf'),_0x3681ed,_0x41cea0[_0x4e48('0x13')]['message']);return _0x15a379(_0x41cea0['error']['message']);}logger[_0x4e48('0x13')]('ReportAgentPreview,\x20%s,\x20%s',_0x3681ed,_0x41cea0['error'][_0x4e48('0x15')]);return _0x9c21a4(_0x41cea0[_0x4e48('0x13')]['message']);}else{logger['info'](_0x4e48('0xf'),_0x3681ed,'request\x20sent');_0x9c21a4(_0x41cea0[_0x4e48('0x16')][_0x4e48('0x15')]);}})[_0x4e48('0x17')](function(_0x113f87){logger[_0x4e48('0x13')](_0x4e48('0xf'),_0x3681ed,_0x113f87);_0x15a379(_0x113f87);});});}exports['CreateReportAgentPreview']=function(_0x141e9b){var _0xb56ca3=this;return new Promise(function(_0x3121e4,_0x5b23a2){return db[_0x4e48('0x18')][_0x4e48('0x19')](_0x141e9b[_0x4e48('0x1a')],{'raw':_0x141e9b[_0x4e48('0x1b')]?_0x141e9b[_0x4e48('0x1b')][_0x4e48('0x1c')]===undefined?!![]:![]:!![]})[_0x4e48('0xe')](function(_0xd6f9d1){logger[_0x4e48('0x1d')](_0x4e48('0x1e'),_0x141e9b);logger[_0x4e48('0x11')](_0x4e48('0x1e'),_0x141e9b,JSON[_0x4e48('0x12')](_0xd6f9d1));_0x3121e4(_0xd6f9d1);})[_0x4e48('0x17')](function(_0x515669){logger[_0x4e48('0x13')]('CreateReportAgentPreview',_0x515669[_0x4e48('0x15')],_0x141e9b);_0x5b23a2(_0xb56ca3[_0x4e48('0x13')](0x1f4,_0x515669[_0x4e48('0x15')]));});});};
\ No newline at end of file