Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 152ce7c..7811197 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x26d3=['ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','request','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','lodash','util','moment'];(function(_0x4594e3,_0x4cb0fe){var _0x27e4b6=function(_0x1ac6fc){while(--_0x1ac6fc){_0x4594e3['push'](_0x4594e3['shift']());}};_0x27e4b6(++_0x4cb0fe);}(_0x26d3,0x18c));var _0x326d=function(_0x8ab524,_0x1dbf82){_0x8ab524=_0x8ab524-0x0;var _0x3fb6b2=_0x26d3[_0x8ab524];return _0x3fb6b2;};'use strict';var _=require(_0x326d('0x0'));var util=require(_0x326d('0x1'));var moment=require(_0x326d('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x326d('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x326d('0x4'));var logger=require(_0x326d('0x5'))(_0x326d('0x6'));var config=require(_0x326d('0x7'));var jayson=require(_0x326d('0x8'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x244460,_0x7c5c85,_0x15a5c1){return new BPromise(function(_0x579324,_0x3eff6f){return client[_0x326d('0x9')](_0x244460,_0x15a5c1)['then'](function(_0x447552){logger['info'](_0x326d('0xa'),_0x7c5c85,_0x326d('0xb'));logger[_0x326d('0xc')](_0x326d('0xd'),_0x7c5c85,_0x326d('0xb'),JSON[_0x326d('0xe')](_0x447552));if(_0x447552[_0x326d('0xf')]){if(_0x447552[_0x326d('0xf')]['code']===0x1f4){logger[_0x326d('0xf')]('ZohoConfiguration,\x20%s,\x20%s',_0x7c5c85,_0x447552[_0x326d('0xf')][_0x326d('0x10')]);return _0x3eff6f(_0x447552['error'][_0x326d('0x10')]);}logger[_0x326d('0xf')](_0x326d('0xa'),_0x7c5c85,_0x447552['error'][_0x326d('0x10')]);return _0x579324(_0x447552[_0x326d('0xf')][_0x326d('0x10')]);}else{logger[_0x326d('0x11')](_0x326d('0xa'),_0x7c5c85,_0x326d('0xb'));_0x579324(_0x447552[_0x326d('0x12')]['message']);}})['catch'](function(_0x33a833){logger[_0x326d('0xf')](_0x326d('0xa'),_0x7c5c85,_0x33a833);_0x3eff6f(_0x33a833);});});}
\ No newline at end of file
+var _0x2c24=['code','message','result','lodash','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','ZohoConfiguration,\x20%s,\x20%s','debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0x2c24,0xab));var _0x42c2=function(_0x4ce3ad,_0x842c57){_0x4ce3ad=_0x4ce3ad-0x0;var _0x6306d7=_0x2c24[_0x4ce3ad];return _0x6306d7;};'use strict';var _=require(_0x42c2('0x0'));var util=require(_0x42c2('0x1'));var moment=require(_0x42c2('0x2'));var BPromise=require('bluebird');var rs=require(_0x42c2('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x42c2('0x4'))['db'];var utils=require(_0x42c2('0x5'));var logger=require(_0x42c2('0x6'))(_0x42c2('0x7'));var config=require(_0x42c2('0x8'));var jayson=require(_0x42c2('0x9'));var client=jayson[_0x42c2('0xa')][_0x42c2('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x59c8af,_0x301b56,_0x1895b5){return new BPromise(function(_0xae2fe0,_0x4d5a96){return client[_0x42c2('0xc')](_0x59c8af,_0x1895b5)[_0x42c2('0xd')](function(_0x2dba62){logger[_0x42c2('0xe')](_0x42c2('0xf'),_0x301b56,'request\x20sent');logger[_0x42c2('0x10')](_0x42c2('0x11'),_0x301b56,_0x42c2('0x12'),JSON[_0x42c2('0x13')](_0x2dba62));if(_0x2dba62[_0x42c2('0x14')]){if(_0x2dba62[_0x42c2('0x14')][_0x42c2('0x15')]===0x1f4){logger[_0x42c2('0x14')](_0x42c2('0xf'),_0x301b56,_0x2dba62[_0x42c2('0x14')][_0x42c2('0x16')]);return _0x4d5a96(_0x2dba62[_0x42c2('0x14')][_0x42c2('0x16')]);}logger[_0x42c2('0x14')](_0x42c2('0xf'),_0x301b56,_0x2dba62[_0x42c2('0x14')][_0x42c2('0x16')]);return _0xae2fe0(_0x2dba62['error'][_0x42c2('0x16')]);}else{logger[_0x42c2('0xe')](_0x42c2('0xf'),_0x301b56,_0x42c2('0x12'));_0xae2fe0(_0x2dba62[_0x42c2('0x17')][_0x42c2('0x16')]);}})['catch'](function(_0x4ffcfe){logger[_0x42c2('0x14')](_0x42c2('0xf'),_0x301b56,_0x4ffcfe);_0x4d5a96(_0x4ffcfe);});});}
\ No newline at end of file