Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / intZohoField / intZohoField.rpc.js
index 1c75582..7bdf4b8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xedd9=['moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','stringify','error','code','ZohoField,\x20%s,\x20%s','message','catch','util'];(function(_0x241695,_0x1a8e19){var _0x5792f0=function(_0x35b8f7){while(--_0x35b8f7){_0x241695['push'](_0x241695['shift']());}};_0x5792f0(++_0x1a8e19);}(_0xedd9,0xfc));var _0x9edd=function(_0x1d704a,_0x3a4bee){_0x1d704a=_0x1d704a-0x0;var _0x583540=_0xedd9[_0x1d704a];return _0x583540;};'use strict';var _=require('lodash');var util=require(_0x9edd('0x0'));var moment=require(_0x9edd('0x1'));var BPromise=require(_0x9edd('0x2'));var rs=require(_0x9edd('0x3'));var fs=require('fs');var Redis=require(_0x9edd('0x4'));var db=require(_0x9edd('0x5'))['db'];var utils=require(_0x9edd('0x6'));var logger=require(_0x9edd('0x7'))('rpc');var config=require(_0x9edd('0x8'));var jayson=require(_0x9edd('0x9'));var client=jayson[_0x9edd('0xa')][_0x9edd('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5319f7,_0xf0b2d8,_0x571af9){return new BPromise(function(_0x172522,_0x190185){return client[_0x9edd('0xc')](_0x5319f7,_0x571af9)[_0x9edd('0xd')](function(_0x49d5e3){logger[_0x9edd('0xe')]('ZohoField,\x20%s,\x20%s',_0xf0b2d8,_0x9edd('0xf'));logger[_0x9edd('0x10')]('ZohoField,\x20%s,\x20%s,\x20%s',_0xf0b2d8,_0x9edd('0xf'),JSON[_0x9edd('0x11')](_0x49d5e3));if(_0x49d5e3['error']){if(_0x49d5e3[_0x9edd('0x12')][_0x9edd('0x13')]===0x1f4){logger[_0x9edd('0x12')](_0x9edd('0x14'),_0xf0b2d8,_0x49d5e3[_0x9edd('0x12')][_0x9edd('0x15')]);return _0x190185(_0x49d5e3[_0x9edd('0x12')][_0x9edd('0x15')]);}logger['error'](_0x9edd('0x14'),_0xf0b2d8,_0x49d5e3[_0x9edd('0x12')][_0x9edd('0x15')]);return _0x172522(_0x49d5e3[_0x9edd('0x12')][_0x9edd('0x15')]);}else{logger[_0x9edd('0xe')](_0x9edd('0x14'),_0xf0b2d8,_0x9edd('0xf'));_0x172522(_0x49d5e3['result'][_0x9edd('0x15')]);}})[_0x9edd('0x16')](function(_0x449cee){logger['error'](_0x9edd('0x14'),_0xf0b2d8,_0x449cee);_0x190185(_0x449cee);});});}
\ No newline at end of file
+var _0x8955=['error','code','ZohoField,\x20%s,\x20%s','message','info','catch','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','request\x20sent','ZohoField,\x20%s,\x20%s,\x20%s'];(function(_0xa1181c,_0x1724a4){var _0x1ef296=function(_0x1233e0){while(--_0x1233e0){_0xa1181c['push'](_0xa1181c['shift']());}};_0x1ef296(++_0x1724a4);}(_0x8955,0x99));var _0x5895=function(_0x24b628,_0x3b1ecb){_0x24b628=_0x24b628-0x0;var _0x184416=_0x8955[_0x24b628];return _0x184416;};'use strict';var _=require(_0x5895('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x5895('0x1'));var rs=require(_0x5895('0x2'));var fs=require('fs');var Redis=require(_0x5895('0x3'));var db=require(_0x5895('0x4'))['db'];var utils=require(_0x5895('0x5'));var logger=require(_0x5895('0x6'))(_0x5895('0x7'));var config=require(_0x5895('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x5895('0x9')][_0x5895('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x460e28,_0x89bccb,_0x7c40e3){return new BPromise(function(_0x2f1dc6,_0x124065){return client[_0x5895('0xb')](_0x460e28,_0x7c40e3)[_0x5895('0xc')](function(_0x527017){logger['info']('ZohoField,\x20%s,\x20%s',_0x89bccb,_0x5895('0xd'));logger['debug'](_0x5895('0xe'),_0x89bccb,_0x5895('0xd'),JSON['stringify'](_0x527017));if(_0x527017[_0x5895('0xf')]){if(_0x527017[_0x5895('0xf')][_0x5895('0x10')]===0x1f4){logger[_0x5895('0xf')](_0x5895('0x11'),_0x89bccb,_0x527017[_0x5895('0xf')][_0x5895('0x12')]);return _0x124065(_0x527017['error'][_0x5895('0x12')]);}logger[_0x5895('0xf')](_0x5895('0x11'),_0x89bccb,_0x527017['error'][_0x5895('0x12')]);return _0x2f1dc6(_0x527017[_0x5895('0xf')][_0x5895('0x12')]);}else{logger[_0x5895('0x13')](_0x5895('0x11'),_0x89bccb,_0x5895('0xd'));_0x2f1dc6(_0x527017['result'][_0x5895('0x12')]);}})[_0x5895('0x14')](function(_0x51ba50){logger[_0x5895('0xf')](_0x5895('0x11'),_0x89bccb,_0x51ba50);_0x124065(_0x51ba50);});});}
\ No newline at end of file