Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 5dbd38a..52447ee 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf723=['moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','info','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug','error','message','result','catch','lodash'];(function(_0x1c9630,_0xd5a7f0){var _0x33a024=function(_0x3b1d97){while(--_0x3b1d97){_0x1c9630['push'](_0x1c9630['shift']());}};_0x33a024(++_0xd5a7f0);}(_0xf723,0x149));var _0x3f72=function(_0x468dac,_0x1ffdb3){_0x468dac=_0x468dac-0x0;var _0x62391=_0xf723[_0x468dac];return _0x62391;};'use strict';var _=require(_0x3f72('0x0'));var util=require('util');var moment=require(_0x3f72('0x1'));var BPromise=require(_0x3f72('0x2'));var rs=require(_0x3f72('0x3'));var fs=require('fs');var Redis=require(_0x3f72('0x4'));var db=require(_0x3f72('0x5'))['db'];var utils=require(_0x3f72('0x6'));var logger=require(_0x3f72('0x7'))(_0x3f72('0x8'));var config=require(_0x3f72('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x3f72('0xa')][_0x3f72('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2fefbd,_0x158139,_0xfae9d3){return new BPromise(function(_0x23ce68,_0x3cdf94){return client[_0x3f72('0xc')](_0x2fefbd,_0xfae9d3)[_0x3f72('0xd')](function(_0x5d95ca){logger[_0x3f72('0xe')](_0x3f72('0xf'),_0x158139,_0x3f72('0x10'));logger[_0x3f72('0x11')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x158139,_0x3f72('0x10'),JSON['stringify'](_0x5d95ca));if(_0x5d95ca['error']){if(_0x5d95ca[_0x3f72('0x12')]['code']===0x1f4){logger[_0x3f72('0x12')](_0x3f72('0xf'),_0x158139,_0x5d95ca[_0x3f72('0x12')][_0x3f72('0x13')]);return _0x3cdf94(_0x5d95ca[_0x3f72('0x12')]['message']);}logger[_0x3f72('0x12')](_0x3f72('0xf'),_0x158139,_0x5d95ca[_0x3f72('0x12')]['message']);return _0x23ce68(_0x5d95ca[_0x3f72('0x12')][_0x3f72('0x13')]);}else{logger[_0x3f72('0xe')]('ZohoConfiguration,\x20%s,\x20%s',_0x158139,_0x3f72('0x10'));_0x23ce68(_0x5d95ca[_0x3f72('0x14')][_0x3f72('0x13')]);}})[_0x3f72('0x15')](function(_0x5217fa){logger[_0x3f72('0x12')](_0x3f72('0xf'),_0x158139,_0x5217fa);_0x3cdf94(_0x5217fa);});});}
\ No newline at end of file
+var _0xefef=['error','info','result','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','http','request','then','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','ZohoConfiguration,\x20%s,\x20%s,\x20%s','stringify','message'];(function(_0x47a7d0,_0x4e182d){var _0xb9bd08=function(_0x588ee2){while(--_0x588ee2){_0x47a7d0['push'](_0x47a7d0['shift']());}};_0xb9bd08(++_0x4e182d);}(_0xefef,0xdf));var _0xfefe=function(_0x5c6994,_0x19ad9a){_0x5c6994=_0x5c6994-0x0;var _0x1d5c84=_0xefef[_0x5c6994];return _0x1d5c84;};'use strict';var _=require(_0xfefe('0x0'));var util=require('util');var moment=require(_0xfefe('0x1'));var BPromise=require(_0xfefe('0x2'));var rs=require(_0xfefe('0x3'));var fs=require('fs');var Redis=require(_0xfefe('0x4'));var db=require(_0xfefe('0x5'))['db'];var utils=require(_0xfefe('0x6'));var logger=require(_0xfefe('0x7'))('rpc');var config=require(_0xfefe('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0xfefe('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x18730b,_0x5e80b9,_0x338c93){return new BPromise(function(_0xfbf67e,_0xf1aa5b){return client[_0xfefe('0xa')](_0x18730b,_0x338c93)[_0xfefe('0xb')](function(_0x4472f1){logger['info'](_0xfefe('0xc'),_0x5e80b9,_0xfefe('0xd'));logger['debug'](_0xfefe('0xe'),_0x5e80b9,_0xfefe('0xd'),JSON[_0xfefe('0xf')](_0x4472f1));if(_0x4472f1['error']){if(_0x4472f1['error']['code']===0x1f4){logger['error'](_0xfefe('0xc'),_0x5e80b9,_0x4472f1['error'][_0xfefe('0x10')]);return _0xf1aa5b(_0x4472f1[_0xfefe('0x11')][_0xfefe('0x10')]);}logger[_0xfefe('0x11')](_0xfefe('0xc'),_0x5e80b9,_0x4472f1[_0xfefe('0x11')][_0xfefe('0x10')]);return _0xfbf67e(_0x4472f1[_0xfefe('0x11')][_0xfefe('0x10')]);}else{logger[_0xfefe('0x12')]('ZohoConfiguration,\x20%s,\x20%s',_0x5e80b9,_0xfefe('0xd'));_0xfbf67e(_0x4472f1[_0xfefe('0x13')][_0xfefe('0x10')]);}})['catch'](function(_0x24353f){logger['error'](_0xfefe('0xc'),_0x5e80b9,_0x24353f);_0xf1aa5b(_0x24353f);});});}
\ No newline at end of file