Built motion from commit (unavailable).|2.5.5
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 331bf85..2cd2afe 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5fbb=['debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify','code','error','message','result','catch','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','info','ZohoConfiguration,\x20%s,\x20%s','request\x20sent'];(function(_0x24f31b,_0x44b8f3){var _0x488401=function(_0x204caf){while(--_0x204caf){_0x24f31b['push'](_0x24f31b['shift']());}};_0x488401(++_0x44b8f3);}(_0x5fbb,0x64));var _0xb5fb=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x5fbb[_0x59ee6f];return _0x4c0979;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xb5fb('0x0'));var BPromise=require(_0xb5fb('0x1'));var rs=require(_0xb5fb('0x2'));var fs=require('fs');var Redis=require(_0xb5fb('0x3'));var db=require(_0xb5fb('0x4'))['db'];var utils=require(_0xb5fb('0x5'));var logger=require(_0xb5fb('0x6'))(_0xb5fb('0x7'));var config=require(_0xb5fb('0x8'));var jayson=require(_0xb5fb('0x9'));var client=jayson[_0xb5fb('0xa')][_0xb5fb('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2a24ef,_0x41b68a,_0x24d330){return new BPromise(function(_0x28ea3e,_0x364624){return client['request'](_0x2a24ef,_0x24d330)['then'](function(_0x14da19){logger[_0xb5fb('0xc')](_0xb5fb('0xd'),_0x41b68a,_0xb5fb('0xe'));logger[_0xb5fb('0xf')](_0xb5fb('0x10'),_0x41b68a,_0xb5fb('0xe'),JSON[_0xb5fb('0x11')](_0x14da19));if(_0x14da19['error']){if(_0x14da19['error'][_0xb5fb('0x12')]===0x1f4){logger[_0xb5fb('0x13')]('ZohoConfiguration,\x20%s,\x20%s',_0x41b68a,_0x14da19['error'][_0xb5fb('0x14')]);return _0x364624(_0x14da19[_0xb5fb('0x13')]['message']);}logger['error'](_0xb5fb('0xd'),_0x41b68a,_0x14da19[_0xb5fb('0x13')][_0xb5fb('0x14')]);return _0x28ea3e(_0x14da19['error'][_0xb5fb('0x14')]);}else{logger[_0xb5fb('0xc')](_0xb5fb('0xd'),_0x41b68a,_0xb5fb('0xe'));_0x28ea3e(_0x14da19[_0xb5fb('0x15')]['message']);}})[_0xb5fb('0x16')](function(_0x2eb980){logger[_0xb5fb('0x13')](_0xb5fb('0xd'),_0x41b68a,_0x2eb980);_0x364624(_0x2eb980);});});}
\ No newline at end of file
+var _0x6190=['message','info','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','request','ZohoConfiguration,\x20%s,\x20%s','debug','ZohoConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code'];(function(_0x93c171,_0x2b3a4c){var _0x4970d9=function(_0x347849){while(--_0x347849){_0x93c171['push'](_0x93c171['shift']());}};_0x4970d9(++_0x2b3a4c);}(_0x6190,0x87));var _0x0619=function(_0x554502,_0x58daa7){_0x554502=_0x554502-0x0;var _0x52229e=_0x6190[_0x554502];return _0x52229e;};'use strict';var _=require(_0x0619('0x0'));var util=require(_0x0619('0x1'));var moment=require(_0x0619('0x2'));var BPromise=require('bluebird');var rs=require(_0x0619('0x3'));var fs=require('fs');var Redis=require(_0x0619('0x4'));var db=require(_0x0619('0x5'))['db'];var utils=require(_0x0619('0x6'));var logger=require(_0x0619('0x7'))(_0x0619('0x8'));var config=require('../../config/environment');var jayson=require(_0x0619('0x9'));var client=jayson['client'][_0x0619('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4617a1,_0x4a7714,_0x45bdb2){return new BPromise(function(_0x3e59bf,_0x3f9166){return client[_0x0619('0xb')](_0x4617a1,_0x45bdb2)['then'](function(_0x48650c){logger['info'](_0x0619('0xc'),_0x4a7714,'request\x20sent');logger[_0x0619('0xd')](_0x0619('0xe'),_0x4a7714,_0x0619('0xf'),JSON[_0x0619('0x10')](_0x48650c));if(_0x48650c[_0x0619('0x11')]){if(_0x48650c[_0x0619('0x11')][_0x0619('0x12')]===0x1f4){logger[_0x0619('0x11')](_0x0619('0xc'),_0x4a7714,_0x48650c[_0x0619('0x11')]['message']);return _0x3f9166(_0x48650c[_0x0619('0x11')]['message']);}logger[_0x0619('0x11')](_0x0619('0xc'),_0x4a7714,_0x48650c['error'][_0x0619('0x13')]);return _0x3e59bf(_0x48650c[_0x0619('0x11')]['message']);}else{logger[_0x0619('0x14')](_0x0619('0xc'),_0x4a7714,'request\x20sent');_0x3e59bf(_0x48650c['result']['message']);}})[_0x0619('0x15')](function(_0x5efd1e){logger[_0x0619('0x11')](_0x0619('0xc'),_0x4a7714,_0x5efd1e);_0x3f9166(_0x5efd1e);});});}
\ No newline at end of file