Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.rpc.js
index bfd808e..f1238df 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe2d2=['error','code','FreshsalesField,\x20%s,\x20%s','message','info','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','request\x20sent','debug'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0xe2d2,0xf7));var _0x2e2d=function(_0x4d2c6a,_0x1befca){_0x4d2c6a=_0x4d2c6a-0x0;var _0x5a31b2=_0xe2d2[_0x4d2c6a];return _0x5a31b2;};'use strict';var _=require(_0x2e2d('0x0'));var util=require(_0x2e2d('0x1'));var moment=require(_0x2e2d('0x2'));var BPromise=require('bluebird');var rs=require(_0x2e2d('0x3'));var fs=require('fs');var Redis=require(_0x2e2d('0x4'));var db=require(_0x2e2d('0x5'))['db'];var utils=require(_0x2e2d('0x6'));var logger=require(_0x2e2d('0x7'))(_0x2e2d('0x8'));var config=require(_0x2e2d('0x9'));var jayson=require(_0x2e2d('0xa'));var client=jayson[_0x2e2d('0xb')][_0x2e2d('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x5055dd,_0x4e7403,_0x2c16bd){return new BPromise(function(_0x7223f2,_0x41f20d){return client[_0x2e2d('0xd')](_0x5055dd,_0x2c16bd)[_0x2e2d('0xe')](function(_0x48fb22){logger['info']('FreshsalesField,\x20%s,\x20%s',_0x4e7403,_0x2e2d('0xf'));logger[_0x2e2d('0x10')]('FreshsalesField,\x20%s,\x20%s,\x20%s',_0x4e7403,_0x2e2d('0xf'),JSON['stringify'](_0x48fb22));if(_0x48fb22[_0x2e2d('0x11')]){if(_0x48fb22['error'][_0x2e2d('0x12')]===0x1f4){logger[_0x2e2d('0x11')](_0x2e2d('0x13'),_0x4e7403,_0x48fb22[_0x2e2d('0x11')][_0x2e2d('0x14')]);return _0x41f20d(_0x48fb22[_0x2e2d('0x11')]['message']);}logger[_0x2e2d('0x11')](_0x2e2d('0x13'),_0x4e7403,_0x48fb22['error'][_0x2e2d('0x14')]);return _0x7223f2(_0x48fb22[_0x2e2d('0x11')][_0x2e2d('0x14')]);}else{logger[_0x2e2d('0x15')](_0x2e2d('0x13'),_0x4e7403,_0x2e2d('0xf'));_0x7223f2(_0x48fb22[_0x2e2d('0x16')][_0x2e2d('0x14')]);}})[_0x2e2d('0x17')](function(_0x515ac2){logger[_0x2e2d('0x11')](_0x2e2d('0x13'),_0x4e7403,_0x515ac2);_0x41f20d(_0x515ac2);});});}
\ No newline at end of file
+var _0xf960=['http','request','then','info','FreshsalesField,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise'];(function(_0x3ee21e,_0x5cf64c){var _0x10755a=function(_0x31d3a9){while(--_0x31d3a9){_0x3ee21e['push'](_0x3ee21e['shift']());}};_0x10755a(++_0x5cf64c);}(_0xf960,0xde));var _0x0f96=function(_0x4536a4,_0x55af7b){_0x4536a4=_0x4536a4-0x0;var _0x4fd1c1=_0xf960[_0x4536a4];return _0x4fd1c1;};'use strict';var _=require('lodash');var util=require(_0x0f96('0x0'));var moment=require(_0x0f96('0x1'));var BPromise=require(_0x0f96('0x2'));var rs=require(_0x0f96('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x0f96('0x4'))['db'];var utils=require(_0x0f96('0x5'));var logger=require('../../config/logger')(_0x0f96('0x6'));var config=require(_0x0f96('0x7'));var jayson=require(_0x0f96('0x8'));var client=jayson['client'][_0x0f96('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x3831af,_0x547611,_0x10b0b6){return new BPromise(function(_0x16327c,_0x536a05){return client[_0x0f96('0xa')](_0x3831af,_0x10b0b6)[_0x0f96('0xb')](function(_0x452abf){logger[_0x0f96('0xc')](_0x0f96('0xd'),_0x547611,_0x0f96('0xe'));logger[_0x0f96('0xf')]('FreshsalesField,\x20%s,\x20%s,\x20%s',_0x547611,_0x0f96('0xe'),JSON[_0x0f96('0x10')](_0x452abf));if(_0x452abf[_0x0f96('0x11')]){if(_0x452abf[_0x0f96('0x11')][_0x0f96('0x12')]===0x1f4){logger[_0x0f96('0x11')](_0x0f96('0xd'),_0x547611,_0x452abf[_0x0f96('0x11')][_0x0f96('0x13')]);return _0x536a05(_0x452abf['error']['message']);}logger[_0x0f96('0x11')](_0x0f96('0xd'),_0x547611,_0x452abf[_0x0f96('0x11')]['message']);return _0x16327c(_0x452abf[_0x0f96('0x11')][_0x0f96('0x13')]);}else{logger[_0x0f96('0xc')](_0x0f96('0xd'),_0x547611,_0x0f96('0xe'));_0x16327c(_0x452abf[_0x0f96('0x14')][_0x0f96('0x13')]);}})['catch'](function(_0x41e0e3){logger[_0x0f96('0x11')](_0x0f96('0xd'),_0x547611,_0x41e0e3);_0x536a05(_0x41e0e3);});});}
\ No newline at end of file