Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 863b3ef..0a75e29 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd4cb=['request','info','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','http'];(function(_0x20ae9e,_0x3b539a){var _0x476119=function(_0x57e950){while(--_0x57e950){_0x20ae9e['push'](_0x20ae9e['shift']());}};_0x476119(++_0x3b539a);}(_0xd4cb,0x197));var _0xbd4c=function(_0x5758bd,_0xc700fa){_0x5758bd=_0x5758bd-0x0;var _0x255be5=_0xd4cb[_0x5758bd];return _0x255be5;};'use strict';var _=require(_0xbd4c('0x0'));var util=require('util');var moment=require(_0xbd4c('0x1'));var BPromise=require(_0xbd4c('0x2'));var rs=require(_0xbd4c('0x3'));var fs=require('fs');var Redis=require(_0xbd4c('0x4'));var db=require(_0xbd4c('0x5'))['db'];var utils=require(_0xbd4c('0x6'));var logger=require(_0xbd4c('0x7'))('rpc');var config=require(_0xbd4c('0x8'));var jayson=require(_0xbd4c('0x9'));var client=jayson['client'][_0xbd4c('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x413c77,_0x51cfba,_0x2ec44f){return new BPromise(function(_0x24d014,_0x2e3770){return client[_0xbd4c('0xb')](_0x413c77,_0x2ec44f)['then'](function(_0x1634e7){logger[_0xbd4c('0xc')](_0xbd4c('0xd'),_0x51cfba,_0xbd4c('0xe'));logger[_0xbd4c('0xf')](_0xbd4c('0x10'),_0x51cfba,_0xbd4c('0xe'),JSON['stringify'](_0x1634e7));if(_0x1634e7[_0xbd4c('0x11')]){if(_0x1634e7[_0xbd4c('0x11')][_0xbd4c('0x12')]===0x1f4){logger['error']('ZohoConfiguration,\x20%s,\x20%s',_0x51cfba,_0x1634e7['error'][_0xbd4c('0x13')]);return _0x2e3770(_0x1634e7[_0xbd4c('0x11')][_0xbd4c('0x13')]);}logger[_0xbd4c('0x11')](_0xbd4c('0xd'),_0x51cfba,_0x1634e7[_0xbd4c('0x11')][_0xbd4c('0x13')]);return _0x24d014(_0x1634e7[_0xbd4c('0x11')]['message']);}else{logger[_0xbd4c('0xc')](_0xbd4c('0xd'),_0x51cfba,_0xbd4c('0xe'));_0x24d014(_0x1634e7[_0xbd4c('0x14')][_0xbd4c('0x13')]);}})[_0xbd4c('0x15')](function(_0x481939){logger[_0xbd4c('0x11')](_0xbd4c('0xd'),_0x51cfba,_0x481939);_0x2e3770(_0x481939);});});}
\ No newline at end of file
+var _0x0384=['lodash','util','moment','bluebird','ioredis','../../config/environment','jayson/promise','client','http','request','then','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','code','error','message','info','result','catch'];(function(_0x84d58b,_0x33da04){var _0x401807=function(_0x4e551a){while(--_0x4e551a){_0x84d58b['push'](_0x84d58b['shift']());}};_0x401807(++_0x33da04);}(_0x0384,0x13b));var _0x4038=function(_0x4de05d,_0x46b6e1){_0x4de05d=_0x4de05d-0x0;var _0x50d860=_0x0384[_0x4de05d];return _0x50d860;};'use strict';var _=require(_0x4038('0x0'));var util=require(_0x4038('0x1'));var moment=require(_0x4038('0x2'));var BPromise=require(_0x4038('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x4038('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')('rpc');var config=require(_0x4038('0x5'));var jayson=require(_0x4038('0x6'));var client=jayson[_0x4038('0x7')][_0x4038('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x3ab2d2,_0x3c192a,_0x4c4388){return new BPromise(function(_0x410f2d,_0x28244f){return client[_0x4038('0x9')](_0x3ab2d2,_0x4c4388)[_0x4038('0xa')](function(_0x4e88ac){logger['info'](_0x4038('0xb'),_0x3c192a,_0x4038('0xc'));logger[_0x4038('0xd')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x3c192a,_0x4038('0xc'),JSON[_0x4038('0xe')](_0x4e88ac));if(_0x4e88ac['error']){if(_0x4e88ac['error'][_0x4038('0xf')]===0x1f4){logger[_0x4038('0x10')](_0x4038('0xb'),_0x3c192a,_0x4e88ac['error'][_0x4038('0x11')]);return _0x28244f(_0x4e88ac[_0x4038('0x10')][_0x4038('0x11')]);}logger['error'](_0x4038('0xb'),_0x3c192a,_0x4e88ac[_0x4038('0x10')][_0x4038('0x11')]);return _0x410f2d(_0x4e88ac[_0x4038('0x10')][_0x4038('0x11')]);}else{logger[_0x4038('0x12')](_0x4038('0xb'),_0x3c192a,_0x4038('0xc'));_0x410f2d(_0x4e88ac[_0x4038('0x13')]['message']);}})[_0x4038('0x14')](function(_0x1338e8){logger[_0x4038('0x10')]('ZohoConfiguration,\x20%s,\x20%s',_0x3c192a,_0x1338e8);_0x28244f(_0x1338e8);});});}
\ No newline at end of file