Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / intServicenowField / intServicenowField.rpc.js
index b455366..136240b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x68cf=['util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','request','info','ServicenowField,\x20%s,\x20%s','request\x20sent','debug','ServicenowField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash'];(function(_0x208897,_0x1cfafc){var _0x1fed9e=function(_0x180576){while(--_0x180576){_0x208897['push'](_0x208897['shift']());}};_0x1fed9e(++_0x1cfafc);}(_0x68cf,0xbf));var _0xf68c=function(_0x45871c,_0x2c2872){_0x45871c=_0x45871c-0x0;var _0x5c6a9c=_0x68cf[_0x45871c];return _0x5c6a9c;};'use strict';var _=require(_0xf68c('0x0'));var util=require(_0xf68c('0x1'));var moment=require(_0xf68c('0x2'));var BPromise=require(_0xf68c('0x3'));var rs=require(_0xf68c('0x4'));var fs=require('fs');var Redis=require(_0xf68c('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xf68c('0x6'));var logger=require(_0xf68c('0x7'))(_0xf68c('0x8'));var config=require('../../config/environment');var jayson=require(_0xf68c('0x9'));var client=jayson[_0xf68c('0xa')][_0xf68c('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2a29c4,_0x4a9b64,_0xd61be6){return new BPromise(function(_0x37f378,_0x2047d4){return client[_0xf68c('0xc')](_0x2a29c4,_0xd61be6)['then'](function(_0x3a7284){logger[_0xf68c('0xd')](_0xf68c('0xe'),_0x4a9b64,_0xf68c('0xf'));logger[_0xf68c('0x10')](_0xf68c('0x11'),_0x4a9b64,'request\x20sent',JSON[_0xf68c('0x12')](_0x3a7284));if(_0x3a7284[_0xf68c('0x13')]){if(_0x3a7284[_0xf68c('0x13')][_0xf68c('0x14')]===0x1f4){logger[_0xf68c('0x13')](_0xf68c('0xe'),_0x4a9b64,_0x3a7284['error'][_0xf68c('0x15')]);return _0x2047d4(_0x3a7284[_0xf68c('0x13')][_0xf68c('0x15')]);}logger[_0xf68c('0x13')]('ServicenowField,\x20%s,\x20%s',_0x4a9b64,_0x3a7284[_0xf68c('0x13')]['message']);return _0x37f378(_0x3a7284[_0xf68c('0x13')][_0xf68c('0x15')]);}else{logger[_0xf68c('0xd')](_0xf68c('0xe'),_0x4a9b64,_0xf68c('0xf'));_0x37f378(_0x3a7284[_0xf68c('0x16')]['message']);}})[_0xf68c('0x17')](function(_0x5765fa){logger[_0xf68c('0x13')](_0xf68c('0xe'),_0x4a9b64,_0x5765fa);_0x2047d4(_0x5765fa);});});}
\ No newline at end of file
+var _0xfacf=['error','code','message','result','catch','lodash','util','moment','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','ServicenowField,\x20%s,\x20%s','request\x20sent','debug','ServicenowField,\x20%s,\x20%s,\x20%s'];(function(_0x34e9df,_0x297e62){var _0x1b04cb=function(_0x5dee0a){while(--_0x5dee0a){_0x34e9df['push'](_0x34e9df['shift']());}};_0x1b04cb(++_0x297e62);}(_0xfacf,0xbd));var _0xffac=function(_0x33754e,_0x9b17bc){_0x33754e=_0x33754e-0x0;var _0x39199c=_0xfacf[_0x33754e];return _0x39199c;};'use strict';var _=require(_0xffac('0x0'));var util=require(_0xffac('0x1'));var moment=require(_0xffac('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xffac('0x3'));var db=require(_0xffac('0x4'))['db'];var utils=require(_0xffac('0x5'));var logger=require(_0xffac('0x6'))(_0xffac('0x7'));var config=require(_0xffac('0x8'));var jayson=require(_0xffac('0x9'));var client=jayson[_0xffac('0xa')][_0xffac('0xb')]({'port':0x232a});function respondWithRpcPromise(_0xbda4d5,_0x1ac45a,_0x1ad9dc){return new BPromise(function(_0x554570,_0x355440){return client['request'](_0xbda4d5,_0x1ad9dc)[_0xffac('0xc')](function(_0x52dc0b){logger[_0xffac('0xd')](_0xffac('0xe'),_0x1ac45a,_0xffac('0xf'));logger[_0xffac('0x10')](_0xffac('0x11'),_0x1ac45a,_0xffac('0xf'),JSON['stringify'](_0x52dc0b));if(_0x52dc0b[_0xffac('0x12')]){if(_0x52dc0b[_0xffac('0x12')][_0xffac('0x13')]===0x1f4){logger[_0xffac('0x12')](_0xffac('0xe'),_0x1ac45a,_0x52dc0b[_0xffac('0x12')][_0xffac('0x14')]);return _0x355440(_0x52dc0b[_0xffac('0x12')][_0xffac('0x14')]);}logger['error'](_0xffac('0xe'),_0x1ac45a,_0x52dc0b[_0xffac('0x12')]['message']);return _0x554570(_0x52dc0b[_0xffac('0x12')][_0xffac('0x14')]);}else{logger['info'](_0xffac('0xe'),_0x1ac45a,'request\x20sent');_0x554570(_0x52dc0b[_0xffac('0x15')][_0xffac('0x14')]);}})[_0xffac('0x16')](function(_0xecb0bc){logger[_0xffac('0x12')](_0xffac('0xe'),_0x1ac45a,_0xecb0bc);_0x355440(_0xecb0bc);});});}
\ No newline at end of file