Built motion from commit c0cdc9d8.|2.6.28
[motion2.git] / server / api / intDynamics365Configuration / intDynamics365Configuration.rpc.js
index 1e55002..7604543 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5a95=['Dynamics365Configuration,\x20%s,\x20%s','message','request\x20sent','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','debug','Dynamics365Configuration,\x20%s,\x20%s,\x20%s','stringify','error'];(function(_0x1b09e8,_0x5c9627){var _0x158835=function(_0x5017ba){while(--_0x5017ba){_0x1b09e8['push'](_0x1b09e8['shift']());}};_0x158835(++_0x5c9627);}(_0x5a95,0xc5));var _0x55a9=function(_0x57be65,_0x1cac09){_0x57be65=_0x57be65-0x0;var _0x2149aa=_0x5a95[_0x57be65];return _0x2149aa;};'use strict';var _=require(_0x55a9('0x0'));var util=require(_0x55a9('0x1'));var moment=require(_0x55a9('0x2'));var BPromise=require(_0x55a9('0x3'));var rs=require(_0x55a9('0x4'));var fs=require('fs');var Redis=require(_0x55a9('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x55a9('0x6'));var logger=require('../../config/logger')(_0x55a9('0x7'));var config=require(_0x55a9('0x8'));var jayson=require(_0x55a9('0x9'));var client=jayson[_0x55a9('0xa')][_0x55a9('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1e7df2,_0x8187ad,_0x284992){return new BPromise(function(_0x55b62a,_0x3ced3c){return client[_0x55a9('0xc')](_0x1e7df2,_0x284992)[_0x55a9('0xd')](function(_0x31c843){logger[_0x55a9('0xe')]('Dynamics365Configuration,\x20%s,\x20%s',_0x8187ad,'request\x20sent');logger[_0x55a9('0xf')](_0x55a9('0x10'),_0x8187ad,'request\x20sent',JSON[_0x55a9('0x11')](_0x31c843));if(_0x31c843['error']){if(_0x31c843['error']['code']===0x1f4){logger[_0x55a9('0x12')](_0x55a9('0x13'),_0x8187ad,_0x31c843[_0x55a9('0x12')][_0x55a9('0x14')]);return _0x3ced3c(_0x31c843['error']['message']);}logger[_0x55a9('0x12')]('Dynamics365Configuration,\x20%s,\x20%s',_0x8187ad,_0x31c843[_0x55a9('0x12')]['message']);return _0x55b62a(_0x31c843['error']['message']);}else{logger['info']('Dynamics365Configuration,\x20%s,\x20%s',_0x8187ad,_0x55a9('0x15'));_0x55b62a(_0x31c843[_0x55a9('0x16')][_0x55a9('0x14')]);}})[_0x55a9('0x17')](function(_0x15c38c){logger[_0x55a9('0x12')](_0x55a9('0x13'),_0x8187ad,_0x15c38c);_0x3ced3c(_0x15c38c);});});}
\ No newline at end of file
+var _0xfcfb=['jayson/promise','client','http','request','then','Dynamics365Configuration,\x20%s,\x20%s','request\x20sent','debug','Dynamics365Configuration,\x20%s,\x20%s,\x20%s','error','code','message','info','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment'];(function(_0x4dbc5d,_0x2d0a51){var _0x45b461=function(_0x3e73ab){while(--_0x3e73ab){_0x4dbc5d['push'](_0x4dbc5d['shift']());}};_0x45b461(++_0x2d0a51);}(_0xfcfb,0x1a7));var _0xbfcf=function(_0x20cf0c,_0x14259b){_0x20cf0c=_0x20cf0c-0x0;var _0x4a5336=_0xfcfb[_0x20cf0c];return _0x4a5336;};'use strict';var _=require(_0xbfcf('0x0'));var util=require(_0xbfcf('0x1'));var moment=require(_0xbfcf('0x2'));var BPromise=require(_0xbfcf('0x3'));var rs=require(_0xbfcf('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xbfcf('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xbfcf('0x6'))(_0xbfcf('0x7'));var config=require(_0xbfcf('0x8'));var jayson=require(_0xbfcf('0x9'));var client=jayson[_0xbfcf('0xa')][_0xbfcf('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x281fd9,_0x1b3de4,_0x1f7390){return new BPromise(function(_0x399d14,_0x5a6f55){return client[_0xbfcf('0xc')](_0x281fd9,_0x1f7390)[_0xbfcf('0xd')](function(_0x3f0f59){logger['info'](_0xbfcf('0xe'),_0x1b3de4,_0xbfcf('0xf'));logger[_0xbfcf('0x10')](_0xbfcf('0x11'),_0x1b3de4,'request\x20sent',JSON['stringify'](_0x3f0f59));if(_0x3f0f59[_0xbfcf('0x12')]){if(_0x3f0f59[_0xbfcf('0x12')][_0xbfcf('0x13')]===0x1f4){logger[_0xbfcf('0x12')]('Dynamics365Configuration,\x20%s,\x20%s',_0x1b3de4,_0x3f0f59[_0xbfcf('0x12')]['message']);return _0x5a6f55(_0x3f0f59[_0xbfcf('0x12')]['message']);}logger['error'](_0xbfcf('0xe'),_0x1b3de4,_0x3f0f59[_0xbfcf('0x12')][_0xbfcf('0x14')]);return _0x399d14(_0x3f0f59[_0xbfcf('0x12')][_0xbfcf('0x14')]);}else{logger[_0xbfcf('0x15')](_0xbfcf('0xe'),_0x1b3de4,_0xbfcf('0xf'));_0x399d14(_0x3f0f59[_0xbfcf('0x16')][_0xbfcf('0x14')]);}})[_0xbfcf('0x17')](function(_0x20abb3){logger[_0xbfcf('0x12')](_0xbfcf('0xe'),_0x1b3de4,_0x20abb3);_0x5a6f55(_0x20abb3);});});}
\ No newline at end of file