Built motion from commit ce97982f.|2.6.29
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 02b1bec..82b5de5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb01f=['error','ZohoConfiguration,\x20%s,\x20%s','message','result','lodash','util','bluebird','../../mysqldb','../../config/utils','rpc','request','info','request\x20sent','debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x2eec1f,_0x1b9987){var _0x543075=function(_0x5792d2){while(--_0x5792d2){_0x2eec1f['push'](_0x2eec1f['shift']());}};_0x543075(++_0x1b9987);}(_0xb01f,0x104));var _0xfb01=function(_0x3b3f4f,_0x403216){_0x3b3f4f=_0x3b3f4f-0x0;var _0x174dbe=_0xb01f[_0x3b3f4f];return _0x174dbe;};'use strict';var _=require(_0xfb01('0x0'));var util=require(_0xfb01('0x1'));var moment=require('moment');var BPromise=require(_0xfb01('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xfb01('0x3'))['db'];var utils=require(_0xfb01('0x4'));var logger=require('../../config/logger')(_0xfb01('0x5'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x3b0829,_0x397842,_0x4ce021){return new BPromise(function(_0x209745,_0x22df89){return client[_0xfb01('0x6')](_0x3b0829,_0x4ce021)['then'](function(_0x7efa22){logger[_0xfb01('0x7')]('ZohoConfiguration,\x20%s,\x20%s',_0x397842,_0xfb01('0x8'));logger[_0xfb01('0x9')](_0xfb01('0xa'),_0x397842,_0xfb01('0x8'),JSON[_0xfb01('0xb')](_0x7efa22));if(_0x7efa22[_0xfb01('0xc')]){if(_0x7efa22[_0xfb01('0xc')]['code']===0x1f4){logger[_0xfb01('0xc')](_0xfb01('0xd'),_0x397842,_0x7efa22['error'][_0xfb01('0xe')]);return _0x22df89(_0x7efa22[_0xfb01('0xc')]['message']);}logger[_0xfb01('0xc')](_0xfb01('0xd'),_0x397842,_0x7efa22[_0xfb01('0xc')][_0xfb01('0xe')]);return _0x209745(_0x7efa22['error'][_0xfb01('0xe')]);}else{logger[_0xfb01('0x7')](_0xfb01('0xd'),_0x397842,_0xfb01('0x8'));_0x209745(_0x7efa22[_0xfb01('0xf')][_0xfb01('0xe')]);}})['catch'](function(_0x1d124d){logger[_0xfb01('0xc')]('ZohoConfiguration,\x20%s,\x20%s',_0x397842,_0x1d124d);_0x22df89(_0x1d124d);});});}
\ No newline at end of file
+var _0x8f88=['http','request','then','info','request\x20sent','debug','stringify','code','ZohoConfiguration,\x20%s,\x20%s','error','message','result','catch','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0xae7c2f,_0xf31e04){var _0x5d7001=function(_0x4eeadb){while(--_0x4eeadb){_0xae7c2f['push'](_0xae7c2f['shift']());}};_0x5d7001(++_0xf31e04);}(_0x8f88,0xb5));var _0x88f8=function(_0x2e140d,_0x333831){_0x2e140d=_0x2e140d-0x0;var _0x48cfe2=_0x8f88[_0x2e140d];return _0x48cfe2;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x88f8('0x0'));var BPromise=require(_0x88f8('0x1'));var rs=require(_0x88f8('0x2'));var fs=require('fs');var Redis=require(_0x88f8('0x3'));var db=require(_0x88f8('0x4'))['db'];var utils=require(_0x88f8('0x5'));var logger=require(_0x88f8('0x6'))(_0x88f8('0x7'));var config=require(_0x88f8('0x8'));var jayson=require(_0x88f8('0x9'));var client=jayson[_0x88f8('0xa')][_0x88f8('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x4887f3,_0x42cf18,_0xe01b19){return new BPromise(function(_0x375141,_0x1126b3){return client[_0x88f8('0xc')](_0x4887f3,_0xe01b19)[_0x88f8('0xd')](function(_0x4b98f8){logger[_0x88f8('0xe')]('ZohoConfiguration,\x20%s,\x20%s',_0x42cf18,_0x88f8('0xf'));logger[_0x88f8('0x10')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x42cf18,'request\x20sent',JSON[_0x88f8('0x11')](_0x4b98f8));if(_0x4b98f8['error']){if(_0x4b98f8['error'][_0x88f8('0x12')]===0x1f4){logger['error'](_0x88f8('0x13'),_0x42cf18,_0x4b98f8[_0x88f8('0x14')][_0x88f8('0x15')]);return _0x1126b3(_0x4b98f8[_0x88f8('0x14')]['message']);}logger[_0x88f8('0x14')]('ZohoConfiguration,\x20%s,\x20%s',_0x42cf18,_0x4b98f8[_0x88f8('0x14')][_0x88f8('0x15')]);return _0x375141(_0x4b98f8[_0x88f8('0x14')][_0x88f8('0x15')]);}else{logger[_0x88f8('0xe')](_0x88f8('0x13'),_0x42cf18,_0x88f8('0xf'));_0x375141(_0x4b98f8[_0x88f8('0x16')][_0x88f8('0x15')]);}})[_0x88f8('0x17')](function(_0x3aff51){logger[_0x88f8('0x14')](_0x88f8('0x13'),_0x42cf18,_0x3aff51);_0x1126b3(_0x3aff51);});});}
\ No newline at end of file