Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.rpc.js
index e30da31..5961aaa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xafc1=['jayson/promise','client','request','then','info','Dynamics365Field,\x20%s,\x20%s','debug','Dynamics365Field,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment'];(function(_0x24061a,_0x1c9f4d){var _0x82054e=function(_0x2ec346){while(--_0x2ec346){_0x24061a['push'](_0x24061a['shift']());}};_0x82054e(++_0x1c9f4d);}(_0xafc1,0x9e));var _0x1afc=function(_0x1dfd01,_0x4c3e0b){_0x1dfd01=_0x1dfd01-0x0;var _0x25e63c=_0xafc1[_0x1dfd01];return _0x25e63c;};'use strict';var _=require(_0x1afc('0x0'));var util=require(_0x1afc('0x1'));var moment=require(_0x1afc('0x2'));var BPromise=require(_0x1afc('0x3'));var rs=require(_0x1afc('0x4'));var fs=require('fs');var Redis=require(_0x1afc('0x5'));var db=require(_0x1afc('0x6'))['db'];var utils=require(_0x1afc('0x7'));var logger=require('../../config/logger')(_0x1afc('0x8'));var config=require(_0x1afc('0x9'));var jayson=require(_0x1afc('0xa'));var client=jayson[_0x1afc('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2bcf3d,_0x8dac69,_0x5567e9){return new BPromise(function(_0x354148,_0x4b4c8f){return client[_0x1afc('0xc')](_0x2bcf3d,_0x5567e9)[_0x1afc('0xd')](function(_0x12c8b4){logger[_0x1afc('0xe')](_0x1afc('0xf'),_0x8dac69,'request\x20sent');logger[_0x1afc('0x10')](_0x1afc('0x11'),_0x8dac69,_0x1afc('0x12'),JSON[_0x1afc('0x13')](_0x12c8b4));if(_0x12c8b4[_0x1afc('0x14')]){if(_0x12c8b4[_0x1afc('0x14')]['code']===0x1f4){logger[_0x1afc('0x14')](_0x1afc('0xf'),_0x8dac69,_0x12c8b4[_0x1afc('0x14')]['message']);return _0x4b4c8f(_0x12c8b4[_0x1afc('0x14')]['message']);}logger[_0x1afc('0x14')]('Dynamics365Field,\x20%s,\x20%s',_0x8dac69,_0x12c8b4[_0x1afc('0x14')][_0x1afc('0x15')]);return _0x354148(_0x12c8b4[_0x1afc('0x14')][_0x1afc('0x15')]);}else{logger['info'](_0x1afc('0xf'),_0x8dac69,_0x1afc('0x12'));_0x354148(_0x12c8b4[_0x1afc('0x16')]['message']);}})[_0x1afc('0x17')](function(_0xef1b96){logger[_0x1afc('0x14')](_0x1afc('0xf'),_0x8dac69,_0xef1b96);_0x4b4c8f(_0xef1b96);});});}
\ No newline at end of file
+var _0x2dce=['request\x20sent','debug','Dynamics365Field,\x20%s,\x20%s,\x20%s','stringify','error','Dynamics365Field,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info'];(function(_0x781470,_0x74550c){var _0x21268c=function(_0x3e242c){while(--_0x3e242c){_0x781470['push'](_0x781470['shift']());}};_0x21268c(++_0x74550c);}(_0x2dce,0xb1));var _0xe2dc=function(_0xa78862,_0x4bd931){_0xa78862=_0xa78862-0x0;var _0x536c41=_0x2dce[_0xa78862];return _0x536c41;};'use strict';var _=require(_0xe2dc('0x0'));var util=require(_0xe2dc('0x1'));var moment=require(_0xe2dc('0x2'));var BPromise=require(_0xe2dc('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xe2dc('0x4'));var db=require(_0xe2dc('0x5'))['db'];var utils=require(_0xe2dc('0x6'));var logger=require(_0xe2dc('0x7'))(_0xe2dc('0x8'));var config=require(_0xe2dc('0x9'));var jayson=require(_0xe2dc('0xa'));var client=jayson[_0xe2dc('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4d0898,_0x1a958a,_0x313810){return new BPromise(function(_0x511d13,_0x219fb5){return client[_0xe2dc('0xc')](_0x4d0898,_0x313810)[_0xe2dc('0xd')](function(_0x347376){logger[_0xe2dc('0xe')]('Dynamics365Field,\x20%s,\x20%s',_0x1a958a,_0xe2dc('0xf'));logger[_0xe2dc('0x10')](_0xe2dc('0x11'),_0x1a958a,_0xe2dc('0xf'),JSON[_0xe2dc('0x12')](_0x347376));if(_0x347376[_0xe2dc('0x13')]){if(_0x347376[_0xe2dc('0x13')]['code']===0x1f4){logger[_0xe2dc('0x13')](_0xe2dc('0x14'),_0x1a958a,_0x347376[_0xe2dc('0x13')][_0xe2dc('0x15')]);return _0x219fb5(_0x347376['error'][_0xe2dc('0x15')]);}logger[_0xe2dc('0x13')](_0xe2dc('0x14'),_0x1a958a,_0x347376[_0xe2dc('0x13')]['message']);return _0x511d13(_0x347376['error']['message']);}else{logger[_0xe2dc('0xe')](_0xe2dc('0x14'),_0x1a958a,_0xe2dc('0xf'));_0x511d13(_0x347376[_0xe2dc('0x16')][_0xe2dc('0x15')]);}})[_0xe2dc('0x17')](function(_0x471f18){logger[_0xe2dc('0x13')](_0xe2dc('0x14'),_0x1a958a,_0x471f18);_0x219fb5(_0x471f18);});});}
\ No newline at end of file