Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / intFreshsalesConfiguration / intFreshsalesConfiguration.rpc.js
index 4353ac9..f606448 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8b1a=['rpc','../../config/environment','jayson/promise','client','http','request','info','FreshsalesConfiguration,\x20%s,\x20%s','FreshsalesConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','request\x20sent','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/logger'];(function(_0xdc19d4,_0x4afa8e){var _0x1e9ff9=function(_0xe6a551){while(--_0xe6a551){_0xdc19d4['push'](_0xdc19d4['shift']());}};_0x1e9ff9(++_0x4afa8e);}(_0x8b1a,0x152));var _0xa8b1=function(_0x12a1d7,_0x40e808){_0x12a1d7=_0x12a1d7-0x0;var _0x41b018=_0x8b1a[_0x12a1d7];return _0x41b018;};'use strict';var _=require(_0xa8b1('0x0'));var util=require(_0xa8b1('0x1'));var moment=require(_0xa8b1('0x2'));var BPromise=require('bluebird');var rs=require(_0xa8b1('0x3'));var fs=require('fs');var Redis=require(_0xa8b1('0x4'));var db=require(_0xa8b1('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xa8b1('0x6'))(_0xa8b1('0x7'));var config=require(_0xa8b1('0x8'));var jayson=require(_0xa8b1('0x9'));var client=jayson[_0xa8b1('0xa')][_0xa8b1('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5db169,_0x2a3030,_0x459cf9){return new BPromise(function(_0x5d958d,_0xabb2b9){return client[_0xa8b1('0xc')](_0x5db169,_0x459cf9)['then'](function(_0x112113){logger[_0xa8b1('0xd')](_0xa8b1('0xe'),_0x2a3030,'request\x20sent');logger['debug'](_0xa8b1('0xf'),_0x2a3030,'request\x20sent',JSON[_0xa8b1('0x10')](_0x112113));if(_0x112113[_0xa8b1('0x11')]){if(_0x112113[_0xa8b1('0x11')][_0xa8b1('0x12')]===0x1f4){logger[_0xa8b1('0x11')](_0xa8b1('0xe'),_0x2a3030,_0x112113[_0xa8b1('0x11')][_0xa8b1('0x13')]);return _0xabb2b9(_0x112113['error'][_0xa8b1('0x13')]);}logger[_0xa8b1('0x11')]('FreshsalesConfiguration,\x20%s,\x20%s',_0x2a3030,_0x112113[_0xa8b1('0x11')]['message']);return _0x5d958d(_0x112113[_0xa8b1('0x11')]['message']);}else{logger[_0xa8b1('0xd')](_0xa8b1('0xe'),_0x2a3030,_0xa8b1('0x14'));_0x5d958d(_0x112113[_0xa8b1('0x15')][_0xa8b1('0x13')]);}})[_0xa8b1('0x16')](function(_0x219e46){logger[_0xa8b1('0x11')]('FreshsalesConfiguration,\x20%s,\x20%s',_0x2a3030,_0x219e46);_0xabb2b9(_0x219e46);});});}
\ No newline at end of file
+var _0xee5e=['then','info','FreshsalesConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','FreshsalesConfiguration,\x20%s,\x20%s','message','lodash','util','moment','bluebird','randomstring','../../mysqldb','rpc','jayson/promise','client','request'];(function(_0x765d7c,_0x36ffe7){var _0x464fc0=function(_0xf6ed7b){while(--_0xf6ed7b){_0x765d7c['push'](_0x765d7c['shift']());}};_0x464fc0(++_0x36ffe7);}(_0xee5e,0x14c));var _0xeee5=function(_0x338674,_0x559333){_0x338674=_0x338674-0x0;var _0x5a7931=_0xee5e[_0x338674];return _0x5a7931;};'use strict';var _=require(_0xeee5('0x0'));var util=require(_0xeee5('0x1'));var moment=require(_0xeee5('0x2'));var BPromise=require(_0xeee5('0x3'));var rs=require(_0xeee5('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xeee5('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xeee5('0x6'));var config=require('../../config/environment');var jayson=require(_0xeee5('0x7'));var client=jayson[_0xeee5('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x46279a,_0x3d743e,_0x3d23e9){return new BPromise(function(_0x4ee637,_0x15b690){return client[_0xeee5('0x9')](_0x46279a,_0x3d23e9)[_0xeee5('0xa')](function(_0x47708e){logger[_0xeee5('0xb')]('FreshsalesConfiguration,\x20%s,\x20%s',_0x3d743e,'request\x20sent');logger['debug'](_0xeee5('0xc'),_0x3d743e,_0xeee5('0xd'),JSON[_0xeee5('0xe')](_0x47708e));if(_0x47708e[_0xeee5('0xf')]){if(_0x47708e[_0xeee5('0xf')][_0xeee5('0x10')]===0x1f4){logger[_0xeee5('0xf')](_0xeee5('0x11'),_0x3d743e,_0x47708e[_0xeee5('0xf')][_0xeee5('0x12')]);return _0x15b690(_0x47708e[_0xeee5('0xf')][_0xeee5('0x12')]);}logger['error'](_0xeee5('0x11'),_0x3d743e,_0x47708e[_0xeee5('0xf')][_0xeee5('0x12')]);return _0x4ee637(_0x47708e[_0xeee5('0xf')][_0xeee5('0x12')]);}else{logger[_0xeee5('0xb')](_0xeee5('0x11'),_0x3d743e,_0xeee5('0xd'));_0x4ee637(_0x47708e['result'][_0xeee5('0x12')]);}})['catch'](function(_0x310d85){logger[_0xeee5('0xf')]('FreshsalesConfiguration,\x20%s,\x20%s',_0x3d743e,_0x310d85);_0x15b690(_0x310d85);});});}
\ No newline at end of file