Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 2f44db0..41b2cc4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2167=['ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','ZohoConfiguration,\x20%s,\x20%s','message','result','catch','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','http','request','then','info','request\x20sent','debug'];(function(_0x29228b,_0x4801be){var _0x2acdce=function(_0x5356a2){while(--_0x5356a2){_0x29228b['push'](_0x29228b['shift']());}};_0x2acdce(++_0x4801be);}(_0x2167,0xe3));var _0x7216=function(_0x4d8ed9,_0x2ae284){_0x4d8ed9=_0x4d8ed9-0x0;var _0x1e2140=_0x2167[_0x4d8ed9];return _0x1e2140;};'use strict';var _=require('lodash');var util=require(_0x7216('0x0'));var moment=require(_0x7216('0x1'));var BPromise=require(_0x7216('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x7216('0x3'));var db=require(_0x7216('0x4'))['db'];var utils=require(_0x7216('0x5'));var logger=require('../../config/logger')(_0x7216('0x6'));var config=require(_0x7216('0x7'));var jayson=require(_0x7216('0x8'));var client=jayson['client'][_0x7216('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1948d8,_0xe049a7,_0x55fdec){return new BPromise(function(_0x3e4b42,_0x30006d){return client[_0x7216('0xa')](_0x1948d8,_0x55fdec)[_0x7216('0xb')](function(_0x3e221d){logger[_0x7216('0xc')]('ZohoConfiguration,\x20%s,\x20%s',_0xe049a7,_0x7216('0xd'));logger[_0x7216('0xe')](_0x7216('0xf'),_0xe049a7,'request\x20sent',JSON[_0x7216('0x10')](_0x3e221d));if(_0x3e221d[_0x7216('0x11')]){if(_0x3e221d['error']['code']===0x1f4){logger[_0x7216('0x11')](_0x7216('0x12'),_0xe049a7,_0x3e221d[_0x7216('0x11')][_0x7216('0x13')]);return _0x30006d(_0x3e221d[_0x7216('0x11')]['message']);}logger[_0x7216('0x11')]('ZohoConfiguration,\x20%s,\x20%s',_0xe049a7,_0x3e221d[_0x7216('0x11')][_0x7216('0x13')]);return _0x3e4b42(_0x3e221d[_0x7216('0x11')][_0x7216('0x13')]);}else{logger[_0x7216('0xc')](_0x7216('0x12'),_0xe049a7,_0x7216('0xd'));_0x3e4b42(_0x3e221d[_0x7216('0x14')][_0x7216('0x13')]);}})[_0x7216('0x15')](function(_0x1cbbc3){logger[_0x7216('0x11')](_0x7216('0x12'),_0xe049a7,_0x1cbbc3);_0x30006d(_0x1cbbc3);});});}
\ No newline at end of file
+var _0xa198=['request','then','info','ZohoConfiguration,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','catch','lodash','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http'];(function(_0x25a9f9,_0x1c6c37){var _0x3d0d38=function(_0x2a64fc){while(--_0x2a64fc){_0x25a9f9['push'](_0x25a9f9['shift']());}};_0x3d0d38(++_0x1c6c37);}(_0xa198,0x108));var _0x8a19=function(_0x5f025e,_0x4553ef){_0x5f025e=_0x5f025e-0x0;var _0x3745ab=_0xa198[_0x5f025e];return _0x3745ab;};'use strict';var _=require(_0x8a19('0x0'));var util=require(_0x8a19('0x1'));var moment=require(_0x8a19('0x2'));var BPromise=require('bluebird');var rs=require(_0x8a19('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x8a19('0x4'))['db'];var utils=require(_0x8a19('0x5'));var logger=require(_0x8a19('0x6'))(_0x8a19('0x7'));var config=require(_0x8a19('0x8'));var jayson=require(_0x8a19('0x9'));var client=jayson[_0x8a19('0xa')][_0x8a19('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1d724d,_0x4bbae4,_0x37b73e){return new BPromise(function(_0x29432e,_0x19e8a5){return client[_0x8a19('0xc')](_0x1d724d,_0x37b73e)[_0x8a19('0xd')](function(_0x3737f1){logger[_0x8a19('0xe')](_0x8a19('0xf'),_0x4bbae4,'request\x20sent');logger[_0x8a19('0x10')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x4bbae4,_0x8a19('0x11'),JSON[_0x8a19('0x12')](_0x3737f1));if(_0x3737f1['error']){if(_0x3737f1[_0x8a19('0x13')][_0x8a19('0x14')]===0x1f4){logger[_0x8a19('0x13')](_0x8a19('0xf'),_0x4bbae4,_0x3737f1[_0x8a19('0x13')][_0x8a19('0x15')]);return _0x19e8a5(_0x3737f1[_0x8a19('0x13')][_0x8a19('0x15')]);}logger[_0x8a19('0x13')]('ZohoConfiguration,\x20%s,\x20%s',_0x4bbae4,_0x3737f1['error'][_0x8a19('0x15')]);return _0x29432e(_0x3737f1[_0x8a19('0x13')][_0x8a19('0x15')]);}else{logger[_0x8a19('0xe')](_0x8a19('0xf'),_0x4bbae4,'request\x20sent');_0x29432e(_0x3737f1['result'][_0x8a19('0x15')]);}})[_0x8a19('0x16')](function(_0x14db91){logger[_0x8a19('0x13')](_0x8a19('0xf'),_0x4bbae4,_0x14db91);_0x19e8a5(_0x14db91);});});}
\ No newline at end of file