Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / intDynamics365Configuration / intDynamics365Configuration.rpc.js
index ef20612..4a29e6d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1d14=['lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','info','Dynamics365Configuration,\x20%s,\x20%s','Dynamics365Configuration,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','catch'];(function(_0x101a8f,_0x16df1a){var _0x2a5c6b=function(_0x393e61){while(--_0x393e61){_0x101a8f['push'](_0x101a8f['shift']());}};_0x2a5c6b(++_0x16df1a);}(_0x1d14,0xdc));var _0x41d1=function(_0x35b48b,_0x34e65d){_0x35b48b=_0x35b48b-0x0;var _0x11746d=_0x1d14[_0x35b48b];return _0x11746d;};'use strict';var _=require(_0x41d1('0x0'));var util=require(_0x41d1('0x1'));var moment=require(_0x41d1('0x2'));var BPromise=require(_0x41d1('0x3'));var rs=require(_0x41d1('0x4'));var fs=require('fs');var Redis=require(_0x41d1('0x5'));var db=require(_0x41d1('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x41d1('0x7'))(_0x41d1('0x8'));var config=require(_0x41d1('0x9'));var jayson=require(_0x41d1('0xa'));var client=jayson[_0x41d1('0xb')][_0x41d1('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x3975c7,_0xc824af,_0x26ba38){return new BPromise(function(_0x181860,_0x13fad9){return client[_0x41d1('0xd')](_0x3975c7,_0x26ba38)['then'](function(_0x5135cf){logger[_0x41d1('0xe')](_0x41d1('0xf'),_0xc824af,'request\x20sent');logger['debug'](_0x41d1('0x10'),_0xc824af,_0x41d1('0x11'),JSON['stringify'](_0x5135cf));if(_0x5135cf[_0x41d1('0x12')]){if(_0x5135cf[_0x41d1('0x12')][_0x41d1('0x13')]===0x1f4){logger[_0x41d1('0x12')]('Dynamics365Configuration,\x20%s,\x20%s',_0xc824af,_0x5135cf[_0x41d1('0x12')][_0x41d1('0x14')]);return _0x13fad9(_0x5135cf['error'][_0x41d1('0x14')]);}logger[_0x41d1('0x12')](_0x41d1('0xf'),_0xc824af,_0x5135cf[_0x41d1('0x12')][_0x41d1('0x14')]);return _0x181860(_0x5135cf[_0x41d1('0x12')]['message']);}else{logger[_0x41d1('0xe')]('Dynamics365Configuration,\x20%s,\x20%s',_0xc824af,_0x41d1('0x11'));_0x181860(_0x5135cf['result'][_0x41d1('0x14')]);}})[_0x41d1('0x15')](function(_0x3b3859){logger[_0x41d1('0x12')](_0x41d1('0xf'),_0xc824af,_0x3b3859);_0x13fad9(_0x3b3859);});});}
\ No newline at end of file
+var _0xc1e3=['Dynamics365Configuration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','then','info','Dynamics365Configuration,\x20%s,\x20%s','debug'];(function(_0x2e6247,_0x5ec07c){var _0x7a1182=function(_0x206b70){while(--_0x206b70){_0x2e6247['push'](_0x2e6247['shift']());}};_0x7a1182(++_0x5ec07c);}(_0xc1e3,0x1bc));var _0x3c1e=function(_0x4b0304,_0x462091){_0x4b0304=_0x4b0304-0x0;var _0x5b3665=_0xc1e3[_0x4b0304];return _0x5b3665;};'use strict';var _=require(_0x3c1e('0x0'));var util=require(_0x3c1e('0x1'));var moment=require(_0x3c1e('0x2'));var BPromise=require('bluebird');var rs=require(_0x3c1e('0x3'));var fs=require('fs');var Redis=require(_0x3c1e('0x4'));var db=require(_0x3c1e('0x5'))['db'];var utils=require(_0x3c1e('0x6'));var logger=require(_0x3c1e('0x7'))(_0x3c1e('0x8'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x3c1e('0x9')][_0x3c1e('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x34880e,_0xcd3d7f,_0x233afc){return new BPromise(function(_0x42b467,_0x354583){return client[_0x3c1e('0xb')](_0x34880e,_0x233afc)[_0x3c1e('0xc')](function(_0x438100){logger[_0x3c1e('0xd')](_0x3c1e('0xe'),_0xcd3d7f,'request\x20sent');logger[_0x3c1e('0xf')](_0x3c1e('0x10'),_0xcd3d7f,'request\x20sent',JSON[_0x3c1e('0x11')](_0x438100));if(_0x438100[_0x3c1e('0x12')]){if(_0x438100['error'][_0x3c1e('0x13')]===0x1f4){logger['error']('Dynamics365Configuration,\x20%s,\x20%s',_0xcd3d7f,_0x438100['error'][_0x3c1e('0x14')]);return _0x354583(_0x438100[_0x3c1e('0x12')]['message']);}logger[_0x3c1e('0x12')]('Dynamics365Configuration,\x20%s,\x20%s',_0xcd3d7f,_0x438100['error'][_0x3c1e('0x14')]);return _0x42b467(_0x438100[_0x3c1e('0x12')][_0x3c1e('0x14')]);}else{logger['info'](_0x3c1e('0xe'),_0xcd3d7f,'request\x20sent');_0x42b467(_0x438100[_0x3c1e('0x15')][_0x3c1e('0x14')]);}})[_0x3c1e('0x16')](function(_0x4c562c){logger[_0x3c1e('0x12')]('Dynamics365Configuration,\x20%s,\x20%s',_0xcd3d7f,_0x4c562c);_0x354583(_0x4c562c);});});}
\ No newline at end of file