Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / intSalesforceField / intSalesforceField.rpc.js
index 1204a28..93bddb4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x797c=['message','info','result','catch','util','moment','bluebird','randomstring','ioredis','../../config/logger','rpc','http','request','request\x20sent','SalesforceField,\x20%s,\x20%s,\x20%s','stringify','error','code','SalesforceField,\x20%s,\x20%s'];(function(_0x34d541,_0x2e92cd){var _0x5e85e9=function(_0x3f3ee6){while(--_0x3f3ee6){_0x34d541['push'](_0x34d541['shift']());}};_0x5e85e9(++_0x2e92cd);}(_0x797c,0xfb));var _0xc797=function(_0x1cd47d,_0x55bc75){_0x1cd47d=_0x1cd47d-0x0;var _0x29d52f=_0x797c[_0x1cd47d];return _0x29d52f;};'use strict';var _=require('lodash');var util=require(_0xc797('0x0'));var moment=require(_0xc797('0x1'));var BPromise=require(_0xc797('0x2'));var rs=require(_0xc797('0x3'));var fs=require('fs');var Redis=require(_0xc797('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xc797('0x5'))(_0xc797('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client'][_0xc797('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x284e3f,_0x55fb86,_0x435a02){return new BPromise(function(_0x7b7e4b,_0x4ac300){return client[_0xc797('0x8')](_0x284e3f,_0x435a02)['then'](function(_0x43b3f2){logger['info']('SalesforceField,\x20%s,\x20%s',_0x55fb86,_0xc797('0x9'));logger['debug'](_0xc797('0xa'),_0x55fb86,_0xc797('0x9'),JSON[_0xc797('0xb')](_0x43b3f2));if(_0x43b3f2['error']){if(_0x43b3f2[_0xc797('0xc')][_0xc797('0xd')]===0x1f4){logger[_0xc797('0xc')](_0xc797('0xe'),_0x55fb86,_0x43b3f2[_0xc797('0xc')][_0xc797('0xf')]);return _0x4ac300(_0x43b3f2['error'][_0xc797('0xf')]);}logger[_0xc797('0xc')](_0xc797('0xe'),_0x55fb86,_0x43b3f2['error']['message']);return _0x7b7e4b(_0x43b3f2['error'][_0xc797('0xf')]);}else{logger[_0xc797('0x10')](_0xc797('0xe'),_0x55fb86,_0xc797('0x9'));_0x7b7e4b(_0x43b3f2[_0xc797('0x11')][_0xc797('0xf')]);}})[_0xc797('0x12')](function(_0xbf3718){logger[_0xc797('0xc')]('SalesforceField,\x20%s,\x20%s',_0x55fb86,_0xbf3718);_0x4ac300(_0xbf3718);});});}
\ No newline at end of file
+var _0x4e33=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','info','debug','SalesforceField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','SalesforceField,\x20%s,\x20%s','result','catch','lodash','util','moment','bluebird','randomstring','ioredis'];(function(_0x545bdf,_0x52d61f){var _0x3070db=function(_0x13ce37){while(--_0x13ce37){_0x545bdf['push'](_0x545bdf['shift']());}};_0x3070db(++_0x52d61f);}(_0x4e33,0x14a));var _0x34e3=function(_0x4bc65f,_0x39ec43){_0x4bc65f=_0x4bc65f-0x0;var _0x44f85f=_0x4e33[_0x4bc65f];return _0x44f85f;};'use strict';var _=require(_0x34e3('0x0'));var util=require(_0x34e3('0x1'));var moment=require(_0x34e3('0x2'));var BPromise=require(_0x34e3('0x3'));var rs=require(_0x34e3('0x4'));var fs=require('fs');var Redis=require(_0x34e3('0x5'));var db=require(_0x34e3('0x6'))['db'];var utils=require(_0x34e3('0x7'));var logger=require(_0x34e3('0x8'))(_0x34e3('0x9'));var config=require(_0x34e3('0xa'));var jayson=require(_0x34e3('0xb'));var client=jayson[_0x34e3('0xc')]['http']({'port':0x232a});function respondWithRpcPromise(_0x44d1b8,_0x331171,_0x495e79){return new BPromise(function(_0x45fbd3,_0x7ca341){return client[_0x34e3('0xd')](_0x44d1b8,_0x495e79)['then'](function(_0x231231){logger[_0x34e3('0xe')]('SalesforceField,\x20%s,\x20%s',_0x331171,'request\x20sent');logger[_0x34e3('0xf')](_0x34e3('0x10'),_0x331171,_0x34e3('0x11'),JSON[_0x34e3('0x12')](_0x231231));if(_0x231231[_0x34e3('0x13')]){if(_0x231231['error']['code']===0x1f4){logger[_0x34e3('0x13')]('SalesforceField,\x20%s,\x20%s',_0x331171,_0x231231[_0x34e3('0x13')][_0x34e3('0x14')]);return _0x7ca341(_0x231231['error']['message']);}logger[_0x34e3('0x13')]('SalesforceField,\x20%s,\x20%s',_0x331171,_0x231231['error'][_0x34e3('0x14')]);return _0x45fbd3(_0x231231['error']['message']);}else{logger[_0x34e3('0xe')](_0x34e3('0x15'),_0x331171,_0x34e3('0x11'));_0x45fbd3(_0x231231[_0x34e3('0x16')][_0x34e3('0x14')]);}})[_0x34e3('0x17')](function(_0x5df062){logger[_0x34e3('0x13')](_0x34e3('0x15'),_0x331171,_0x5df062);_0x7ca341(_0x5df062);});});}
\ No newline at end of file