Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.rpc.js
index 6ddedb3..aa41fda 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9af3=['util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','jayson/promise','client','request','then','info','FreshsalesField,\x20%s,\x20%s','FreshsalesField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','code','error','message','result','catch','lodash'];(function(_0x138adb,_0x193fee){var _0x1b27f2=function(_0x5e97a2){while(--_0x5e97a2){_0x138adb['push'](_0x138adb['shift']());}};_0x1b27f2(++_0x193fee);}(_0x9af3,0x158));var _0x39af=function(_0x527c61,_0x4a71dd){_0x527c61=_0x527c61-0x0;var _0x4c2b51=_0x9af3[_0x527c61];return _0x4c2b51;};'use strict';var _=require(_0x39af('0x0'));var util=require(_0x39af('0x1'));var moment=require(_0x39af('0x2'));var BPromise=require(_0x39af('0x3'));var rs=require(_0x39af('0x4'));var fs=require('fs');var Redis=require(_0x39af('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x39af('0x6'));var logger=require(_0x39af('0x7'))(_0x39af('0x8'));var config=require('../../config/environment');var jayson=require(_0x39af('0x9'));var client=jayson[_0x39af('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5a69b0,_0x49c5b1,_0x2e6f1a){return new BPromise(function(_0x2e8740,_0x3ad777){return client[_0x39af('0xb')](_0x5a69b0,_0x2e6f1a)[_0x39af('0xc')](function(_0x3f8bb4){logger[_0x39af('0xd')](_0x39af('0xe'),_0x49c5b1,'request\x20sent');logger['debug'](_0x39af('0xf'),_0x49c5b1,_0x39af('0x10'),JSON[_0x39af('0x11')](_0x3f8bb4));if(_0x3f8bb4['error']){if(_0x3f8bb4['error'][_0x39af('0x12')]===0x1f4){logger[_0x39af('0x13')](_0x39af('0xe'),_0x49c5b1,_0x3f8bb4[_0x39af('0x13')][_0x39af('0x14')]);return _0x3ad777(_0x3f8bb4[_0x39af('0x13')]['message']);}logger[_0x39af('0x13')](_0x39af('0xe'),_0x49c5b1,_0x3f8bb4[_0x39af('0x13')][_0x39af('0x14')]);return _0x2e8740(_0x3f8bb4[_0x39af('0x13')][_0x39af('0x14')]);}else{logger['info']('FreshsalesField,\x20%s,\x20%s',_0x49c5b1,_0x39af('0x10'));_0x2e8740(_0x3f8bb4[_0x39af('0x15')][_0x39af('0x14')]);}})[_0x39af('0x16')](function(_0xf6ad7e){logger[_0x39af('0x13')]('FreshsalesField,\x20%s,\x20%s',_0x49c5b1,_0xf6ad7e);_0x3ad777(_0xf6ad7e);});});}
\ No newline at end of file
+var _0x2bae=['stringify','error','code','FreshsalesField,\x20%s,\x20%s','message','result','lodash','util','moment','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','info','request\x20sent','FreshsalesField,\x20%s,\x20%s,\x20%s'];(function(_0x2ef61f,_0x41ac76){var _0x58fff2=function(_0x150cb6){while(--_0x150cb6){_0x2ef61f['push'](_0x2ef61f['shift']());}};_0x58fff2(++_0x41ac76);}(_0x2bae,0xe2));var _0xe2ba=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x2bae[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xe2ba('0x0'));var util=require(_0xe2ba('0x1'));var moment=require(_0xe2ba('0x2'));var BPromise=require('bluebird');var rs=require(_0xe2ba('0x3'));var fs=require('fs');var Redis=require(_0xe2ba('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xe2ba('0x5'));var logger=require(_0xe2ba('0x6'))(_0xe2ba('0x7'));var config=require(_0xe2ba('0x8'));var jayson=require('jayson/promise');var client=jayson[_0xe2ba('0x9')][_0xe2ba('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x35ec31,_0x5a8154,_0x3a6bfd){return new BPromise(function(_0x2409b,_0x608b0f){return client[_0xe2ba('0xb')](_0x35ec31,_0x3a6bfd)[_0xe2ba('0xc')](function(_0x3ab464){logger[_0xe2ba('0xd')]('FreshsalesField,\x20%s,\x20%s',_0x5a8154,_0xe2ba('0xe'));logger['debug'](_0xe2ba('0xf'),_0x5a8154,_0xe2ba('0xe'),JSON[_0xe2ba('0x10')](_0x3ab464));if(_0x3ab464[_0xe2ba('0x11')]){if(_0x3ab464[_0xe2ba('0x11')][_0xe2ba('0x12')]===0x1f4){logger[_0xe2ba('0x11')](_0xe2ba('0x13'),_0x5a8154,_0x3ab464['error'][_0xe2ba('0x14')]);return _0x608b0f(_0x3ab464[_0xe2ba('0x11')]['message']);}logger['error'](_0xe2ba('0x13'),_0x5a8154,_0x3ab464['error']['message']);return _0x2409b(_0x3ab464['error'][_0xe2ba('0x14')]);}else{logger['info']('FreshsalesField,\x20%s,\x20%s',_0x5a8154,_0xe2ba('0xe'));_0x2409b(_0x3ab464[_0xe2ba('0x15')][_0xe2ba('0x14')]);}})['catch'](function(_0x29c4f6){logger['error'](_0xe2ba('0x13'),_0x5a8154,_0x29c4f6);_0x608b0f(_0x29c4f6);});});}
\ No newline at end of file