Built motion from commit 9d1906d1.|2.5.40
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.rpc.js
index c9932a3..b75b5e6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x89fb=['catch','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','info','Dynamics365Field,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result'];(function(_0x2b5cbc,_0x29a39c){var _0x13c790=function(_0x49226b){while(--_0x49226b){_0x2b5cbc['push'](_0x2b5cbc['shift']());}};_0x13c790(++_0x29a39c);}(_0x89fb,0x14b));var _0xb89f=function(_0x3af670,_0x295ef7){_0x3af670=_0x3af670-0x0;var _0x14ec5a=_0x89fb[_0x3af670];return _0x14ec5a;};'use strict';var _=require('lodash');var util=require(_0xb89f('0x0'));var moment=require(_0xb89f('0x1'));var BPromise=require(_0xb89f('0x2'));var rs=require(_0xb89f('0x3'));var fs=require('fs');var Redis=require(_0xb89f('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xb89f('0x5'));var logger=require(_0xb89f('0x6'))(_0xb89f('0x7'));var config=require(_0xb89f('0x8'));var jayson=require(_0xb89f('0x9'));var client=jayson['client'][_0xb89f('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5b467c,_0x334236,_0x537685){return new BPromise(function(_0x3c0105,_0x95385){return client[_0xb89f('0xb')](_0x5b467c,_0x537685)['then'](function(_0x18f75f){logger[_0xb89f('0xc')](_0xb89f('0xd'),_0x334236,_0xb89f('0xe'));logger[_0xb89f('0xf')]('Dynamics365Field,\x20%s,\x20%s,\x20%s',_0x334236,'request\x20sent',JSON[_0xb89f('0x10')](_0x18f75f));if(_0x18f75f[_0xb89f('0x11')]){if(_0x18f75f[_0xb89f('0x11')][_0xb89f('0x12')]===0x1f4){logger[_0xb89f('0x11')]('Dynamics365Field,\x20%s,\x20%s',_0x334236,_0x18f75f[_0xb89f('0x11')][_0xb89f('0x13')]);return _0x95385(_0x18f75f[_0xb89f('0x11')][_0xb89f('0x13')]);}logger[_0xb89f('0x11')](_0xb89f('0xd'),_0x334236,_0x18f75f['error'][_0xb89f('0x13')]);return _0x3c0105(_0x18f75f[_0xb89f('0x11')][_0xb89f('0x13')]);}else{logger[_0xb89f('0xc')](_0xb89f('0xd'),_0x334236,_0xb89f('0xe'));_0x3c0105(_0x18f75f[_0xb89f('0x14')]['message']);}})[_0xb89f('0x15')](function(_0xfc48d){logger[_0xb89f('0x11')](_0xb89f('0xd'),_0x334236,_0xfc48d);_0x95385(_0xfc48d);});});}
\ No newline at end of file
+var _0xf5b4=['request','then','info','Dynamics365Field,\x20%s,\x20%s','debug','Dynamics365Field,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','catch','lodash','util','moment','randomstring','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x5ee2f7,_0x470741){var _0xdb696=function(_0x3e26db){while(--_0x3e26db){_0x5ee2f7['push'](_0x5ee2f7['shift']());}};_0xdb696(++_0x470741);}(_0xf5b4,0x19b));var _0x4f5b=function(_0x5c96dd,_0x3017af){_0x5c96dd=_0x5c96dd-0x0;var _0x20416f=_0xf5b4[_0x5c96dd];return _0x20416f;};'use strict';var _=require(_0x4f5b('0x0'));var util=require(_0x4f5b('0x1'));var moment=require(_0x4f5b('0x2'));var BPromise=require('bluebird');var rs=require(_0x4f5b('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x4f5b('0x4'));var logger=require(_0x4f5b('0x5'))(_0x4f5b('0x6'));var config=require(_0x4f5b('0x7'));var jayson=require(_0x4f5b('0x8'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x42885a,_0xd9a3ec,_0x2601f7){return new BPromise(function(_0x49bc13,_0xf0546d){return client[_0x4f5b('0x9')](_0x42885a,_0x2601f7)[_0x4f5b('0xa')](function(_0x911eaf){logger[_0x4f5b('0xb')](_0x4f5b('0xc'),_0xd9a3ec,'request\x20sent');logger[_0x4f5b('0xd')](_0x4f5b('0xe'),_0xd9a3ec,_0x4f5b('0xf'),JSON['stringify'](_0x911eaf));if(_0x911eaf[_0x4f5b('0x10')]){if(_0x911eaf[_0x4f5b('0x10')][_0x4f5b('0x11')]===0x1f4){logger[_0x4f5b('0x10')](_0x4f5b('0xc'),_0xd9a3ec,_0x911eaf[_0x4f5b('0x10')][_0x4f5b('0x12')]);return _0xf0546d(_0x911eaf[_0x4f5b('0x10')]['message']);}logger['error'](_0x4f5b('0xc'),_0xd9a3ec,_0x911eaf[_0x4f5b('0x10')][_0x4f5b('0x12')]);return _0x49bc13(_0x911eaf[_0x4f5b('0x10')][_0x4f5b('0x12')]);}else{logger[_0x4f5b('0xb')]('Dynamics365Field,\x20%s,\x20%s',_0xd9a3ec,'request\x20sent');_0x49bc13(_0x911eaf[_0x4f5b('0x13')]['message']);}})[_0x4f5b('0x14')](function(_0x4da4be){logger['error'](_0x4f5b('0xc'),_0xd9a3ec,_0x4da4be);_0xf0546d(_0x4da4be);});});}
\ No newline at end of file