Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.rpc.js
index 7c5e559..87cc4da 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 _0x29cb=['../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','Dynamics365Field,\x20%s,\x20%s','request\x20sent','debug','Dynamics365Field,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','util','moment','bluebird','randomstring','ioredis'];(function(_0x18f152,_0x41585a){var _0xa10b34=function(_0x1e9798){while(--_0x1e9798){_0x18f152['push'](_0x18f152['shift']());}};_0xa10b34(++_0x41585a);}(_0x29cb,0x199));var _0xb29c=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0x29cb[_0xfae23b];return _0x200640;};'use strict';var _=require('lodash');var util=require(_0xb29c('0x0'));var moment=require(_0xb29c('0x1'));var BPromise=require(_0xb29c('0x2'));var rs=require(_0xb29c('0x3'));var fs=require('fs');var Redis=require(_0xb29c('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xb29c('0x5'));var logger=require(_0xb29c('0x6'))('rpc');var config=require(_0xb29c('0x7'));var jayson=require(_0xb29c('0x8'));var client=jayson[_0xb29c('0x9')][_0xb29c('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x3427e1,_0x24ecdc,_0x15c749){return new BPromise(function(_0x3747a3,_0x387dc5){return client[_0xb29c('0xb')](_0x3427e1,_0x15c749)[_0xb29c('0xc')](function(_0x1ade98){logger[_0xb29c('0xd')](_0xb29c('0xe'),_0x24ecdc,_0xb29c('0xf'));logger[_0xb29c('0x10')](_0xb29c('0x11'),_0x24ecdc,'request\x20sent',JSON[_0xb29c('0x12')](_0x1ade98));if(_0x1ade98[_0xb29c('0x13')]){if(_0x1ade98['error']['code']===0x1f4){logger[_0xb29c('0x13')](_0xb29c('0xe'),_0x24ecdc,_0x1ade98[_0xb29c('0x13')][_0xb29c('0x14')]);return _0x387dc5(_0x1ade98[_0xb29c('0x13')][_0xb29c('0x14')]);}logger[_0xb29c('0x13')](_0xb29c('0xe'),_0x24ecdc,_0x1ade98[_0xb29c('0x13')][_0xb29c('0x14')]);return _0x3747a3(_0x1ade98[_0xb29c('0x13')]['message']);}else{logger[_0xb29c('0xd')](_0xb29c('0xe'),_0x24ecdc,_0xb29c('0xf'));_0x3747a3(_0x1ade98[_0xb29c('0x15')][_0xb29c('0x14')]);}})[_0xb29c('0x16')](function(_0xd94272){logger['error'](_0xb29c('0xe'),_0x24ecdc,_0xd94272);_0x387dc5(_0xd94272);});});}
\ No newline at end of file