Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 704dbbe..1907dba 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9471=['info','result','catch','lodash','util','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message'];(function(_0x49cb69,_0x5a29b4){var _0x4679ac=function(_0x1fd8c6){while(--_0x1fd8c6){_0x49cb69['push'](_0x49cb69['shift']());}};_0x4679ac(++_0x5a29b4);}(_0x9471,0x153));var _0x1947=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x9471[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x1947('0x0'));var util=require(_0x1947('0x1'));var moment=require('moment');var BPromise=require(_0x1947('0x2'));var rs=require(_0x1947('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x1947('0x4'))['db'];var utils=require(_0x1947('0x5'));var logger=require(_0x1947('0x6'))(_0x1947('0x7'));var config=require(_0x1947('0x8'));var jayson=require(_0x1947('0x9'));var client=jayson['client'][_0x1947('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x218858,_0x28413a,_0x34b109){return new BPromise(function(_0x39acd1,_0x266f33){return client[_0x1947('0xb')](_0x218858,_0x34b109)[_0x1947('0xc')](function(_0x28742e){logger['info'](_0x1947('0xd'),_0x28413a,_0x1947('0xe'));logger[_0x1947('0xf')](_0x1947('0x10'),_0x28413a,'request\x20sent',JSON[_0x1947('0x11')](_0x28742e));if(_0x28742e[_0x1947('0x12')]){if(_0x28742e['error'][_0x1947('0x13')]===0x1f4){logger[_0x1947('0x12')](_0x1947('0xd'),_0x28413a,_0x28742e[_0x1947('0x12')][_0x1947('0x14')]);return _0x266f33(_0x28742e['error'][_0x1947('0x14')]);}logger['error'](_0x1947('0xd'),_0x28413a,_0x28742e['error'][_0x1947('0x14')]);return _0x39acd1(_0x28742e[_0x1947('0x12')]['message']);}else{logger[_0x1947('0x15')](_0x1947('0xd'),_0x28413a,_0x1947('0xe'));_0x39acd1(_0x28742e[_0x1947('0x16')]['message']);}})[_0x1947('0x17')](function(_0x27193d){logger['error'](_0x1947('0xd'),_0x28413a,_0x27193d);_0x266f33(_0x27193d);});});}
\ No newline at end of file
+var _0x2bd9=['rpc','../../config/environment','jayson/promise','http','request','info','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','bluebird','randomstring','../../mysqldb','../../config/logger'];(function(_0x2053ea,_0x1ab2d4){var _0x2232c4=function(_0x4230df){while(--_0x4230df){_0x2053ea['push'](_0x2053ea['shift']());}};_0x2232c4(++_0x1ab2d4);}(_0x2bd9,0x64));var _0x92bd=function(_0x542047,_0x1f423f){_0x542047=_0x542047-0x0;var _0x3294dd=_0x2bd9[_0x542047];return _0x3294dd;};'use strict';var _=require(_0x92bd('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x92bd('0x1'));var rs=require(_0x92bd('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x92bd('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x92bd('0x4'))(_0x92bd('0x5'));var config=require(_0x92bd('0x6'));var jayson=require(_0x92bd('0x7'));var client=jayson['client'][_0x92bd('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x4cae6f,_0x5d10a1,_0x4ff8f4){return new BPromise(function(_0x23e989,_0x3172a3){return client[_0x92bd('0x9')](_0x4cae6f,_0x4ff8f4)['then'](function(_0x4b32b1){logger[_0x92bd('0xa')](_0x92bd('0xb'),_0x5d10a1,_0x92bd('0xc'));logger[_0x92bd('0xd')](_0x92bd('0xe'),_0x5d10a1,_0x92bd('0xc'),JSON[_0x92bd('0xf')](_0x4b32b1));if(_0x4b32b1[_0x92bd('0x10')]){if(_0x4b32b1[_0x92bd('0x10')][_0x92bd('0x11')]===0x1f4){logger[_0x92bd('0x10')](_0x92bd('0xb'),_0x5d10a1,_0x4b32b1[_0x92bd('0x10')][_0x92bd('0x12')]);return _0x3172a3(_0x4b32b1[_0x92bd('0x10')][_0x92bd('0x12')]);}logger['error'](_0x92bd('0xb'),_0x5d10a1,_0x4b32b1['error'][_0x92bd('0x12')]);return _0x23e989(_0x4b32b1['error'][_0x92bd('0x12')]);}else{logger[_0x92bd('0xa')](_0x92bd('0xb'),_0x5d10a1,_0x92bd('0xc'));_0x23e989(_0x4b32b1[_0x92bd('0x13')][_0x92bd('0x12')]);}})[_0x92bd('0x14')](function(_0x2f29e6){logger[_0x92bd('0x10')](_0x92bd('0xb'),_0x5d10a1,_0x2f29e6);_0x3172a3(_0x2f29e6);});});}
\ No newline at end of file