Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 6d9e514..cce07f6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x235b=['moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','client','http','request','then','info','ZohoConfiguration,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','lodash','util'];(function(_0x195c21,_0x332612){var _0x3576a8=function(_0xa4bde2){while(--_0xa4bde2){_0x195c21['push'](_0x195c21['shift']());}};_0x3576a8(++_0x332612);}(_0x235b,0xf0));var _0xb235=function(_0x406fa7,_0x59e646){_0x406fa7=_0x406fa7-0x0;var _0x2b72ac=_0x235b[_0x406fa7];return _0x2b72ac;};'use strict';var _=require(_0xb235('0x0'));var util=require(_0xb235('0x1'));var moment=require(_0xb235('0x2'));var BPromise=require(_0xb235('0x3'));var rs=require(_0xb235('0x4'));var fs=require('fs');var Redis=require(_0xb235('0x5'));var db=require(_0xb235('0x6'))['db'];var utils=require(_0xb235('0x7'));var logger=require('../../config/logger')(_0xb235('0x8'));var config=require(_0xb235('0x9'));var jayson=require('jayson/promise');var client=jayson[_0xb235('0xa')][_0xb235('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x791d6f,_0x3016f6,_0x356f19){return new BPromise(function(_0x227111,_0x1d83fe){return client[_0xb235('0xc')](_0x791d6f,_0x356f19)[_0xb235('0xd')](function(_0x496fd9){logger[_0xb235('0xe')](_0xb235('0xf'),_0x3016f6,'request\x20sent');logger[_0xb235('0x10')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x3016f6,_0xb235('0x11'),JSON[_0xb235('0x12')](_0x496fd9));if(_0x496fd9[_0xb235('0x13')]){if(_0x496fd9[_0xb235('0x13')][_0xb235('0x14')]===0x1f4){logger['error'](_0xb235('0xf'),_0x3016f6,_0x496fd9['error'][_0xb235('0x15')]);return _0x1d83fe(_0x496fd9[_0xb235('0x13')][_0xb235('0x15')]);}logger[_0xb235('0x13')](_0xb235('0xf'),_0x3016f6,_0x496fd9[_0xb235('0x13')][_0xb235('0x15')]);return _0x227111(_0x496fd9[_0xb235('0x13')][_0xb235('0x15')]);}else{logger[_0xb235('0xe')]('ZohoConfiguration,\x20%s,\x20%s',_0x3016f6,'request\x20sent');_0x227111(_0x496fd9['result'][_0xb235('0x15')]);}})['catch'](function(_0x8174a0){logger[_0xb235('0x13')]('ZohoConfiguration,\x20%s,\x20%s',_0x3016f6,_0x8174a0);_0x1d83fe(_0x8174a0);});});}
\ No newline at end of file
+var _0x16eb=['debug','stringify','error','code','message','result','catch','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','request','then','info','ZohoConfiguration,\x20%s,\x20%s','request\x20sent'];(function(_0x11728d,_0x29f8e3){var _0x3f7806=function(_0x30b7f5){while(--_0x30b7f5){_0x11728d['push'](_0x11728d['shift']());}};_0x3f7806(++_0x29f8e3);}(_0x16eb,0x10b));var _0xb16e=function(_0x41efef,_0x19810a){_0x41efef=_0x41efef-0x0;var _0x51e449=_0x16eb[_0x41efef];return _0x51e449;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0xb16e('0x0'));var rs=require(_0xb16e('0x1'));var fs=require('fs');var Redis=require(_0xb16e('0x2'));var db=require('../../mysqldb')['db'];var utils=require(_0xb16e('0x3'));var logger=require(_0xb16e('0x4'))(_0xb16e('0x5'));var config=require(_0xb16e('0x6'));var jayson=require(_0xb16e('0x7'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x25f883,_0x1caf51,_0x3127f4){return new BPromise(function(_0x53ecfc,_0xa4983a){return client[_0xb16e('0x8')](_0x25f883,_0x3127f4)[_0xb16e('0x9')](function(_0xeaee23){logger[_0xb16e('0xa')](_0xb16e('0xb'),_0x1caf51,_0xb16e('0xc'));logger[_0xb16e('0xd')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x1caf51,'request\x20sent',JSON[_0xb16e('0xe')](_0xeaee23));if(_0xeaee23[_0xb16e('0xf')]){if(_0xeaee23[_0xb16e('0xf')][_0xb16e('0x10')]===0x1f4){logger['error'](_0xb16e('0xb'),_0x1caf51,_0xeaee23[_0xb16e('0xf')][_0xb16e('0x11')]);return _0xa4983a(_0xeaee23[_0xb16e('0xf')]['message']);}logger['error'](_0xb16e('0xb'),_0x1caf51,_0xeaee23['error'][_0xb16e('0x11')]);return _0x53ecfc(_0xeaee23[_0xb16e('0xf')]['message']);}else{logger[_0xb16e('0xa')](_0xb16e('0xb'),_0x1caf51,_0xb16e('0xc'));_0x53ecfc(_0xeaee23[_0xb16e('0x12')][_0xb16e('0x11')]);}})[_0xb16e('0x13')](function(_0xd93c51){logger[_0xb16e('0xf')](_0xb16e('0xb'),_0x1caf51,_0xd93c51);_0xa4983a(_0xd93c51);});});}
\ No newline at end of file