Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.rpc.js
index 453af06..8527720 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3d7b=['rpc','../../config/environment','jayson/promise','client','http','then','info','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','code','error','message','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x819464,_0x46fc91){var _0x49dcc0=function(_0x36b2b2){while(--_0x36b2b2){_0x819464['push'](_0x819464['shift']());}};_0x49dcc0(++_0x46fc91);}(_0x3d7b,0xcc));var _0xb3d7=function(_0xc4cc56,_0x8e32b1){_0xc4cc56=_0xc4cc56-0x0;var _0x2956ed=_0x3d7b[_0xc4cc56];return _0x2956ed;};'use strict';var _=require('lodash');var util=require(_0xb3d7('0x0'));var moment=require('moment');var BPromise=require(_0xb3d7('0x1'));var rs=require(_0xb3d7('0x2'));var fs=require('fs');var Redis=require(_0xb3d7('0x3'));var db=require(_0xb3d7('0x4'))['db'];var utils=require(_0xb3d7('0x5'));var logger=require('../../config/logger')(_0xb3d7('0x6'));var config=require(_0xb3d7('0x7'));var jayson=require(_0xb3d7('0x8'));var client=jayson[_0xb3d7('0x9')][_0xb3d7('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x58a3b6,_0x230e39,_0x104291){return new BPromise(function(_0x1ec4aa,_0x23dddd){return client['request'](_0x58a3b6,_0x104291)[_0xb3d7('0xb')](function(_0x2ef042){logger[_0xb3d7('0xc')](_0xb3d7('0xd'),_0x230e39,_0xb3d7('0xe'));logger[_0xb3d7('0xf')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x230e39,_0xb3d7('0xe'),JSON[_0xb3d7('0x10')](_0x2ef042));if(_0x2ef042['error']){if(_0x2ef042['error'][_0xb3d7('0x11')]===0x1f4){logger[_0xb3d7('0x12')](_0xb3d7('0xd'),_0x230e39,_0x2ef042['error'][_0xb3d7('0x13')]);return _0x23dddd(_0x2ef042[_0xb3d7('0x12')][_0xb3d7('0x13')]);}logger[_0xb3d7('0x12')](_0xb3d7('0xd'),_0x230e39,_0x2ef042[_0xb3d7('0x12')][_0xb3d7('0x13')]);return _0x1ec4aa(_0x2ef042['error']['message']);}else{logger[_0xb3d7('0xc')](_0xb3d7('0xd'),_0x230e39,_0xb3d7('0xe'));_0x1ec4aa(_0x2ef042['result'][_0xb3d7('0x13')]);}})[_0xb3d7('0x14')](function(_0x26a01f){logger['error'](_0xb3d7('0xd'),_0x230e39,_0x26a01f);_0x23dddd(_0x26a01f);});});}
\ No newline at end of file
+var _0xab44=['error','code','message','info','result','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x4c5143,_0x181163){var _0x53f209=function(_0xf3f899){while(--_0xf3f899){_0x4c5143['push'](_0x4c5143['shift']());}};_0x53f209(++_0x181163);}(_0xab44,0x139));var _0x4ab4=function(_0x21e085,_0x3e4616){_0x21e085=_0x21e085-0x0;var _0x5e70c5=_0xab44[_0x21e085];return _0x5e70c5;};'use strict';var _=require('lodash');var util=require(_0x4ab4('0x0'));var moment=require(_0x4ab4('0x1'));var BPromise=require(_0x4ab4('0x2'));var rs=require(_0x4ab4('0x3'));var fs=require('fs');var Redis=require(_0x4ab4('0x4'));var db=require(_0x4ab4('0x5'))['db'];var utils=require(_0x4ab4('0x6'));var logger=require('../../config/logger')(_0x4ab4('0x7'));var config=require(_0x4ab4('0x8'));var jayson=require(_0x4ab4('0x9'));var client=jayson[_0x4ab4('0xa')][_0x4ab4('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x48abf2,_0x3bfd6c,_0x4c0847){return new BPromise(function(_0x251305,_0x390d85){return client[_0x4ab4('0xc')](_0x48abf2,_0x4c0847)[_0x4ab4('0xd')](function(_0x35fb7e){logger['info'](_0x4ab4('0xe'),_0x3bfd6c,_0x4ab4('0xf'));logger[_0x4ab4('0x10')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x3bfd6c,_0x4ab4('0xf'),JSON['stringify'](_0x35fb7e));if(_0x35fb7e['error']){if(_0x35fb7e[_0x4ab4('0x11')][_0x4ab4('0x12')]===0x1f4){logger[_0x4ab4('0x11')](_0x4ab4('0xe'),_0x3bfd6c,_0x35fb7e[_0x4ab4('0x11')]['message']);return _0x390d85(_0x35fb7e[_0x4ab4('0x11')]['message']);}logger[_0x4ab4('0x11')]('ZohoConfiguration,\x20%s,\x20%s',_0x3bfd6c,_0x35fb7e[_0x4ab4('0x11')][_0x4ab4('0x13')]);return _0x251305(_0x35fb7e[_0x4ab4('0x11')][_0x4ab4('0x13')]);}else{logger[_0x4ab4('0x14')](_0x4ab4('0xe'),_0x3bfd6c,_0x4ab4('0xf'));_0x251305(_0x35fb7e[_0x4ab4('0x15')][_0x4ab4('0x13')]);}})['catch'](function(_0x42fd5d){logger[_0x4ab4('0x11')](_0x4ab4('0xe'),_0x3bfd6c,_0x42fd5d);_0x390d85(_0x42fd5d);});});}
\ No newline at end of file