Built motion from commit 0bd120ac.|2.6.25
[motion2.git] / server / api / intZohoField / intZohoField.rpc.js
index e677fdd..691d3f4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x35ea=['client','http','request','info','ZohoField,\x20%s,\x20%s','request\x20sent','debug','ZohoField,\x20%s,\x20%s,\x20%s','error','code','message','result','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x441694,_0x8863db){var _0x389d32=function(_0x41b9c5){while(--_0x41b9c5){_0x441694['push'](_0x441694['shift']());}};_0x389d32(++_0x8863db);}(_0x35ea,0x68));var _0xa35e=function(_0x389da3,_0x1208ed){_0x389da3=_0x389da3-0x0;var _0x5a8e6c=_0x35ea[_0x389da3];return _0x5a8e6c;};'use strict';var _=require(_0xa35e('0x0'));var util=require('util');var moment=require(_0xa35e('0x1'));var BPromise=require(_0xa35e('0x2'));var rs=require(_0xa35e('0x3'));var fs=require('fs');var Redis=require(_0xa35e('0x4'));var db=require(_0xa35e('0x5'))['db'];var utils=require(_0xa35e('0x6'));var logger=require(_0xa35e('0x7'))(_0xa35e('0x8'));var config=require(_0xa35e('0x9'));var jayson=require(_0xa35e('0xa'));var client=jayson[_0xa35e('0xb')][_0xa35e('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x4f097a,_0x1a47b3,_0x183ca9){return new BPromise(function(_0x25a670,_0x3b22ae){return client[_0xa35e('0xd')](_0x4f097a,_0x183ca9)['then'](function(_0x239ac3){logger[_0xa35e('0xe')](_0xa35e('0xf'),_0x1a47b3,_0xa35e('0x10'));logger[_0xa35e('0x11')](_0xa35e('0x12'),_0x1a47b3,_0xa35e('0x10'),JSON['stringify'](_0x239ac3));if(_0x239ac3[_0xa35e('0x13')]){if(_0x239ac3[_0xa35e('0x13')][_0xa35e('0x14')]===0x1f4){logger['error'](_0xa35e('0xf'),_0x1a47b3,_0x239ac3[_0xa35e('0x13')][_0xa35e('0x15')]);return _0x3b22ae(_0x239ac3[_0xa35e('0x13')][_0xa35e('0x15')]);}logger[_0xa35e('0x13')]('ZohoField,\x20%s,\x20%s',_0x1a47b3,_0x239ac3[_0xa35e('0x13')][_0xa35e('0x15')]);return _0x25a670(_0x239ac3[_0xa35e('0x13')][_0xa35e('0x15')]);}else{logger[_0xa35e('0xe')]('ZohoField,\x20%s,\x20%s',_0x1a47b3,_0xa35e('0x10'));_0x25a670(_0x239ac3[_0xa35e('0x16')][_0xa35e('0x15')]);}})['catch'](function(_0x42482a){logger[_0xa35e('0x13')](_0xa35e('0xf'),_0x1a47b3,_0x42482a);_0x3b22ae(_0x42482a);});});}
\ No newline at end of file
+var _0x6f33=['http','request','info','ZohoField,\x20%s,\x20%s','request\x20sent','ZohoField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','util','moment','bluebird','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x5755ba,_0x132a6d){var _0x2de37d=function(_0x8960ab){while(--_0x8960ab){_0x5755ba['push'](_0x5755ba['shift']());}};_0x2de37d(++_0x132a6d);}(_0x6f33,0xe7));var _0x36f3=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x6f33[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0x36f3('0x0'));var moment=require(_0x36f3('0x1'));var BPromise=require(_0x36f3('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x36f3('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x36f3('0x4'))(_0x36f3('0x5'));var config=require(_0x36f3('0x6'));var jayson=require(_0x36f3('0x7'));var client=jayson[_0x36f3('0x8')][_0x36f3('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x33797a,_0x291c9d,_0x49e724){return new BPromise(function(_0x4e293d,_0x2d728e){return client[_0x36f3('0xa')](_0x33797a,_0x49e724)['then'](function(_0x1b04fb){logger[_0x36f3('0xb')](_0x36f3('0xc'),_0x291c9d,_0x36f3('0xd'));logger['debug'](_0x36f3('0xe'),_0x291c9d,_0x36f3('0xd'),JSON[_0x36f3('0xf')](_0x1b04fb));if(_0x1b04fb[_0x36f3('0x10')]){if(_0x1b04fb['error'][_0x36f3('0x11')]===0x1f4){logger[_0x36f3('0x10')](_0x36f3('0xc'),_0x291c9d,_0x1b04fb[_0x36f3('0x10')][_0x36f3('0x12')]);return _0x2d728e(_0x1b04fb['error'][_0x36f3('0x12')]);}logger[_0x36f3('0x10')]('ZohoField,\x20%s,\x20%s',_0x291c9d,_0x1b04fb['error'][_0x36f3('0x12')]);return _0x4e293d(_0x1b04fb[_0x36f3('0x10')][_0x36f3('0x12')]);}else{logger[_0x36f3('0xb')](_0x36f3('0xc'),_0x291c9d,_0x36f3('0xd'));_0x4e293d(_0x1b04fb['result']['message']);}})[_0x36f3('0x13')](function(_0x461abc){logger[_0x36f3('0x10')](_0x36f3('0xc'),_0x291c9d,_0x461abc);_0x2d728e(_0x461abc);});});}
\ No newline at end of file