Built motion from commit (unavailable).|2.5.20
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 2dbac6a..95a87b4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xff9b=['bluebird','randomstring','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','ZohoConfiguration,\x20%s,\x20%s','message','result','util','moment'];(function(_0x71a02a,_0x392068){var _0x2f5334=function(_0x592603){while(--_0x592603){_0x71a02a['push'](_0x71a02a['shift']());}};_0x2f5334(++_0x392068);}(_0xff9b,0x91));var _0xbff9=function(_0x453bc4,_0x1a31a0){_0x453bc4=_0x453bc4-0x0;var _0x55476c=_0xff9b[_0x453bc4];return _0x55476c;};'use strict';var _=require('lodash');var util=require(_0xbff9('0x0'));var moment=require(_0xbff9('0x1'));var BPromise=require(_0xbff9('0x2'));var rs=require(_0xbff9('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xbff9('0x4'))(_0xbff9('0x5'));var config=require(_0xbff9('0x6'));var jayson=require(_0xbff9('0x7'));var client=jayson[_0xbff9('0x8')][_0xbff9('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x5a8b6e,_0x13e507,_0x337545){return new BPromise(function(_0x1f244b,_0x4453c2){return client[_0xbff9('0xa')](_0x5a8b6e,_0x337545)[_0xbff9('0xb')](function(_0x266054){logger[_0xbff9('0xc')]('ZohoConfiguration,\x20%s,\x20%s',_0x13e507,_0xbff9('0xd'));logger[_0xbff9('0xe')](_0xbff9('0xf'),_0x13e507,_0xbff9('0xd'),JSON[_0xbff9('0x10')](_0x266054));if(_0x266054[_0xbff9('0x11')]){if(_0x266054['error']['code']===0x1f4){logger[_0xbff9('0x11')](_0xbff9('0x12'),_0x13e507,_0x266054[_0xbff9('0x11')][_0xbff9('0x13')]);return _0x4453c2(_0x266054['error'][_0xbff9('0x13')]);}logger['error'](_0xbff9('0x12'),_0x13e507,_0x266054[_0xbff9('0x11')][_0xbff9('0x13')]);return _0x1f244b(_0x266054[_0xbff9('0x11')][_0xbff9('0x13')]);}else{logger[_0xbff9('0xc')](_0xbff9('0x12'),_0x13e507,_0xbff9('0xd'));_0x1f244b(_0x266054[_0xbff9('0x14')][_0xbff9('0x13')]);}})['catch'](function(_0x582ce6){logger[_0xbff9('0x11')](_0xbff9('0x12'),_0x13e507,_0x582ce6);_0x4453c2(_0x582ce6);});});}
\ No newline at end of file
+var _0xf8bc=['ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','ZohoConfiguration,\x20%s,\x20%s','message','result','catch','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','request','info','request\x20sent'];(function(_0x465028,_0x4570ac){var _0xb783d4=function(_0x5458c5){while(--_0x5458c5){_0x465028['push'](_0x465028['shift']());}};_0xb783d4(++_0x4570ac);}(_0xf8bc,0x170));var _0xcf8b=function(_0x284807,_0x4be925){_0x284807=_0x284807-0x0;var _0x50c774=_0xf8bc[_0x284807];return _0x50c774;};'use strict';var _=require('lodash');var util=require(_0xcf8b('0x0'));var moment=require(_0xcf8b('0x1'));var BPromise=require(_0xcf8b('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xcf8b('0x3'));var db=require(_0xcf8b('0x4'))['db'];var utils=require(_0xcf8b('0x5'));var logger=require(_0xcf8b('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0xcf8b('0x7'));var client=jayson[_0xcf8b('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0xf9f34d,_0x5824d0,_0x4ba407){return new BPromise(function(_0x543df6,_0x39193e){return client[_0xcf8b('0x9')](_0xf9f34d,_0x4ba407)['then'](function(_0x5107bb){logger[_0xcf8b('0xa')]('ZohoConfiguration,\x20%s,\x20%s',_0x5824d0,_0xcf8b('0xb'));logger['debug'](_0xcf8b('0xc'),_0x5824d0,_0xcf8b('0xb'),JSON[_0xcf8b('0xd')](_0x5107bb));if(_0x5107bb[_0xcf8b('0xe')]){if(_0x5107bb['error'][_0xcf8b('0xf')]===0x1f4){logger[_0xcf8b('0xe')](_0xcf8b('0x10'),_0x5824d0,_0x5107bb[_0xcf8b('0xe')][_0xcf8b('0x11')]);return _0x39193e(_0x5107bb[_0xcf8b('0xe')][_0xcf8b('0x11')]);}logger[_0xcf8b('0xe')]('ZohoConfiguration,\x20%s,\x20%s',_0x5824d0,_0x5107bb[_0xcf8b('0xe')]['message']);return _0x543df6(_0x5107bb[_0xcf8b('0xe')]['message']);}else{logger[_0xcf8b('0xa')](_0xcf8b('0x10'),_0x5824d0,_0xcf8b('0xb'));_0x543df6(_0x5107bb[_0xcf8b('0x12')][_0xcf8b('0x11')]);}})[_0xcf8b('0x13')](function(_0x48f3c2){logger[_0xcf8b('0xe')](_0xcf8b('0x10'),_0x5824d0,_0x48f3c2);_0x39193e(_0x48f3c2);});});}
\ No newline at end of file