Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.rpc.js
index 9ab61a4..c53e5da 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1bca=['code','message','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','then','info','Dynamics365Field,\x20%s,\x20%s','request\x20sent','debug','Dynamics365Field,\x20%s,\x20%s,\x20%s','error'];(function(_0x187bc4,_0x40cee0){var _0x3a8944=function(_0x32e018){while(--_0x32e018){_0x187bc4['push'](_0x187bc4['shift']());}};_0x3a8944(++_0x40cee0);}(_0x1bca,0x1e6));var _0xa1bc=function(_0x19f716,_0x498681){_0x19f716=_0x19f716-0x0;var _0xfaa946=_0x1bca[_0x19f716];return _0xfaa946;};'use strict';var _=require(_0xa1bc('0x0'));var util=require(_0xa1bc('0x1'));var moment=require('moment');var BPromise=require(_0xa1bc('0x2'));var rs=require(_0xa1bc('0x3'));var fs=require('fs');var Redis=require(_0xa1bc('0x4'));var db=require(_0xa1bc('0x5'))['db'];var utils=require(_0xa1bc('0x6'));var logger=require(_0xa1bc('0x7'))(_0xa1bc('0x8'));var config=require(_0xa1bc('0x9'));var jayson=require(_0xa1bc('0xa'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x10c051,_0x315873,_0x3fc756){return new BPromise(function(_0x9b83e6,_0x2e9fa6){return client['request'](_0x10c051,_0x3fc756)[_0xa1bc('0xb')](function(_0x2381db){logger[_0xa1bc('0xc')](_0xa1bc('0xd'),_0x315873,_0xa1bc('0xe'));logger[_0xa1bc('0xf')](_0xa1bc('0x10'),_0x315873,_0xa1bc('0xe'),JSON['stringify'](_0x2381db));if(_0x2381db[_0xa1bc('0x11')]){if(_0x2381db['error'][_0xa1bc('0x12')]===0x1f4){logger[_0xa1bc('0x11')]('Dynamics365Field,\x20%s,\x20%s',_0x315873,_0x2381db['error'][_0xa1bc('0x13')]);return _0x2e9fa6(_0x2381db[_0xa1bc('0x11')][_0xa1bc('0x13')]);}logger[_0xa1bc('0x11')](_0xa1bc('0xd'),_0x315873,_0x2381db[_0xa1bc('0x11')]['message']);return _0x9b83e6(_0x2381db[_0xa1bc('0x11')][_0xa1bc('0x13')]);}else{logger[_0xa1bc('0xc')]('Dynamics365Field,\x20%s,\x20%s',_0x315873,_0xa1bc('0xe'));_0x9b83e6(_0x2381db['result'][_0xa1bc('0x13')]);}})[_0xa1bc('0x14')](function(_0x545553){logger[_0xa1bc('0x11')](_0xa1bc('0xd'),_0x315873,_0x545553);_0x2e9fa6(_0x545553);});});}
\ No newline at end of file
+var _0x581d=['then','info','request\x20sent','Dynamics365Field,\x20%s,\x20%s,\x20%s','stringify','error','code','message','Dynamics365Field,\x20%s,\x20%s','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request'];(function(_0x3654ac,_0x5145c4){var _0x58eb14=function(_0x398b1b){while(--_0x398b1b){_0x3654ac['push'](_0x3654ac['shift']());}};_0x58eb14(++_0x5145c4);}(_0x581d,0x15a));var _0xd581=function(_0x46fbea,_0x10028a){_0x46fbea=_0x46fbea-0x0;var _0x517110=_0x581d[_0x46fbea];return _0x517110;};'use strict';var _=require(_0xd581('0x0'));var util=require(_0xd581('0x1'));var moment=require(_0xd581('0x2'));var BPromise=require('bluebird');var rs=require(_0xd581('0x3'));var fs=require('fs');var Redis=require(_0xd581('0x4'));var db=require(_0xd581('0x5'))['db'];var utils=require(_0xd581('0x6'));var logger=require(_0xd581('0x7'))(_0xd581('0x8'));var config=require(_0xd581('0x9'));var jayson=require(_0xd581('0xa'));var client=jayson[_0xd581('0xb')][_0xd581('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x49905d,_0x1cf5c8,_0xb53dee){return new BPromise(function(_0x40b735,_0x16f37c){return client[_0xd581('0xd')](_0x49905d,_0xb53dee)[_0xd581('0xe')](function(_0x316f6b){logger[_0xd581('0xf')]('Dynamics365Field,\x20%s,\x20%s',_0x1cf5c8,_0xd581('0x10'));logger['debug'](_0xd581('0x11'),_0x1cf5c8,_0xd581('0x10'),JSON[_0xd581('0x12')](_0x316f6b));if(_0x316f6b[_0xd581('0x13')]){if(_0x316f6b['error'][_0xd581('0x14')]===0x1f4){logger[_0xd581('0x13')]('Dynamics365Field,\x20%s,\x20%s',_0x1cf5c8,_0x316f6b[_0xd581('0x13')]['message']);return _0x16f37c(_0x316f6b['error'][_0xd581('0x15')]);}logger[_0xd581('0x13')](_0xd581('0x16'),_0x1cf5c8,_0x316f6b[_0xd581('0x13')][_0xd581('0x15')]);return _0x40b735(_0x316f6b[_0xd581('0x13')]['message']);}else{logger[_0xd581('0xf')](_0xd581('0x16'),_0x1cf5c8,'request\x20sent');_0x40b735(_0x316f6b['result']['message']);}})[_0xd581('0x17')](function(_0x143ae4){logger[_0xd581('0x13')](_0xd581('0x16'),_0x1cf5c8,_0x143ae4);_0x16f37c(_0x143ae4);});});}
\ No newline at end of file