Built motion from commit (unavailable).|2.5.9
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.rpc.js
index 7c5e559..5c0841e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5ff9=['debug','stringify','error','code','message','info','result','catch','lodash','util','bluebird','randomstring','../../config/utils','../../config/environment','jayson/promise','http','then','Dynamics365Field,\x20%s,\x20%s','request\x20sent'];(function(_0x2f8c70,_0x2bda63){var _0x4c1fd2=function(_0x280baf){while(--_0x280baf){_0x2f8c70['push'](_0x2f8c70['shift']());}};_0x4c1fd2(++_0x2bda63);}(_0x5ff9,0xa0));var _0x95ff=function(_0xf14ec1,_0xdd0eca){_0xf14ec1=_0xf14ec1-0x0;var _0x473bc2=_0x5ff9[_0xf14ec1];return _0x473bc2;};'use strict';var _=require(_0x95ff('0x0'));var util=require(_0x95ff('0x1'));var moment=require('moment');var BPromise=require(_0x95ff('0x2'));var rs=require(_0x95ff('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x95ff('0x4'));var logger=require('../../config/logger')('rpc');var config=require(_0x95ff('0x5'));var jayson=require(_0x95ff('0x6'));var client=jayson['client'][_0x95ff('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x4fd45b,_0x34ace2,_0x384657){return new BPromise(function(_0x491610,_0x2fb3f5){return client['request'](_0x4fd45b,_0x384657)[_0x95ff('0x8')](function(_0x300166){logger['info'](_0x95ff('0x9'),_0x34ace2,_0x95ff('0xa'));logger[_0x95ff('0xb')]('Dynamics365Field,\x20%s,\x20%s,\x20%s',_0x34ace2,_0x95ff('0xa'),JSON[_0x95ff('0xc')](_0x300166));if(_0x300166[_0x95ff('0xd')]){if(_0x300166[_0x95ff('0xd')][_0x95ff('0xe')]===0x1f4){logger[_0x95ff('0xd')]('Dynamics365Field,\x20%s,\x20%s',_0x34ace2,_0x300166['error'][_0x95ff('0xf')]);return _0x2fb3f5(_0x300166[_0x95ff('0xd')][_0x95ff('0xf')]);}logger[_0x95ff('0xd')]('Dynamics365Field,\x20%s,\x20%s',_0x34ace2,_0x300166[_0x95ff('0xd')][_0x95ff('0xf')]);return _0x491610(_0x300166['error'][_0x95ff('0xf')]);}else{logger[_0x95ff('0x10')]('Dynamics365Field,\x20%s,\x20%s',_0x34ace2,'request\x20sent');_0x491610(_0x300166[_0x95ff('0x11')][_0x95ff('0xf')]);}})[_0x95ff('0x12')](function(_0x5d5350){logger[_0x95ff('0xd')]('Dynamics365Field,\x20%s,\x20%s',_0x34ace2,_0x5d5350);_0x2fb3f5(_0x5d5350);});});}
\ No newline at end of file
+var _0x6691=['message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','info','request\x20sent','debug','Dynamics365Field,\x20%s,\x20%s,\x20%s','stringify','error','code','Dynamics365Field,\x20%s,\x20%s'];(function(_0x482077,_0xd3f075){var _0x10fd70=function(_0x6721c8){while(--_0x6721c8){_0x482077['push'](_0x482077['shift']());}};_0x10fd70(++_0xd3f075);}(_0x6691,0x12d));var _0x1669=function(_0x2d7f0e,_0x3e6fbd){_0x2d7f0e=_0x2d7f0e-0x0;var _0x110b07=_0x6691[_0x2d7f0e];return _0x110b07;};'use strict';var _=require(_0x1669('0x0'));var util=require(_0x1669('0x1'));var moment=require(_0x1669('0x2'));var BPromise=require(_0x1669('0x3'));var rs=require(_0x1669('0x4'));var fs=require('fs');var Redis=require(_0x1669('0x5'));var db=require(_0x1669('0x6'))['db'];var utils=require(_0x1669('0x7'));var logger=require(_0x1669('0x8'))(_0x1669('0x9'));var config=require('../../config/environment');var jayson=require(_0x1669('0xa'));var client=jayson[_0x1669('0xb')][_0x1669('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x348683,_0x55393c,_0x5d23fd){return new BPromise(function(_0x59d1e5,_0x3420d5){return client['request'](_0x348683,_0x5d23fd)['then'](function(_0x51f7ef){logger[_0x1669('0xd')]('Dynamics365Field,\x20%s,\x20%s',_0x55393c,_0x1669('0xe'));logger[_0x1669('0xf')](_0x1669('0x10'),_0x55393c,_0x1669('0xe'),JSON[_0x1669('0x11')](_0x51f7ef));if(_0x51f7ef[_0x1669('0x12')]){if(_0x51f7ef[_0x1669('0x12')][_0x1669('0x13')]===0x1f4){logger[_0x1669('0x12')](_0x1669('0x14'),_0x55393c,_0x51f7ef[_0x1669('0x12')][_0x1669('0x15')]);return _0x3420d5(_0x51f7ef[_0x1669('0x12')][_0x1669('0x15')]);}logger[_0x1669('0x12')](_0x1669('0x14'),_0x55393c,_0x51f7ef[_0x1669('0x12')][_0x1669('0x15')]);return _0x59d1e5(_0x51f7ef[_0x1669('0x12')][_0x1669('0x15')]);}else{logger[_0x1669('0xd')](_0x1669('0x14'),_0x55393c,_0x1669('0xe'));_0x59d1e5(_0x51f7ef['result'][_0x1669('0x15')]);}})[_0x1669('0x16')](function(_0x4281dc){logger[_0x1669('0x12')](_0x1669('0x14'),_0x55393c,_0x4281dc);_0x3420d5(_0x4281dc);});});}
\ No newline at end of file