Built motion from commit 55091a5c.|2.6.30
[motion2.git] / server / api / intServicenowConfiguration / intServicenowConfiguration.rpc.js
index 5658e8a..ad67e6f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x50fb=['ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','stringify','error','ServicenowConfiguration,\x20%s,\x20%s','message','result','catch','util','moment','bluebird','randomstring'];(function(_0x372b5a,_0x5d3393){var _0x43ac01=function(_0x2649a0){while(--_0x2649a0){_0x372b5a['push'](_0x372b5a['shift']());}};_0x43ac01(++_0x5d3393);}(_0x50fb,0x1df));var _0xb50f=function(_0x5330de,_0x5e68f6){_0x5330de=_0x5330de-0x0;var _0x297adc=_0x50fb[_0x5330de];return _0x297adc;};'use strict';var _=require('lodash');var util=require(_0xb50f('0x0'));var moment=require(_0xb50f('0x1'));var BPromise=require(_0xb50f('0x2'));var rs=require(_0xb50f('0x3'));var fs=require('fs');var Redis=require(_0xb50f('0x4'));var db=require(_0xb50f('0x5'))['db'];var utils=require(_0xb50f('0x6'));var logger=require(_0xb50f('0x7'))('rpc');var config=require(_0xb50f('0x8'));var jayson=require(_0xb50f('0x9'));var client=jayson[_0xb50f('0xa')][_0xb50f('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x52e0a2,_0x33fd41,_0x3e6021){return new BPromise(function(_0x472703,_0x1a100b){return client[_0xb50f('0xc')](_0x52e0a2,_0x3e6021)[_0xb50f('0xd')](function(_0x1ffa0f){logger[_0xb50f('0xe')]('ServicenowConfiguration,\x20%s,\x20%s',_0x33fd41,_0xb50f('0xf'));logger[_0xb50f('0x10')]('ServicenowConfiguration,\x20%s,\x20%s,\x20%s',_0x33fd41,_0xb50f('0xf'),JSON[_0xb50f('0x11')](_0x1ffa0f));if(_0x1ffa0f[_0xb50f('0x12')]){if(_0x1ffa0f['error']['code']===0x1f4){logger['error'](_0xb50f('0x13'),_0x33fd41,_0x1ffa0f[_0xb50f('0x12')][_0xb50f('0x14')]);return _0x1a100b(_0x1ffa0f['error'][_0xb50f('0x14')]);}logger[_0xb50f('0x12')](_0xb50f('0x13'),_0x33fd41,_0x1ffa0f[_0xb50f('0x12')]['message']);return _0x472703(_0x1ffa0f[_0xb50f('0x12')][_0xb50f('0x14')]);}else{logger[_0xb50f('0xe')](_0xb50f('0x13'),_0x33fd41,_0xb50f('0xf'));_0x472703(_0x1ffa0f[_0xb50f('0x15')][_0xb50f('0x14')]);}})[_0xb50f('0x16')](function(_0x1e6c00){logger['error']('ServicenowConfiguration,\x20%s,\x20%s',_0x33fd41,_0x1e6c00);_0x1a100b(_0x1e6c00);});});}
\ No newline at end of file
+var _0x36f3=['code','error','message','result','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','request','then','info','ServicenowConfiguration,\x20%s,\x20%s','debug','ServicenowConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify'];(function(_0x329743,_0x109d58){var _0x5d9642=function(_0x4f187d){while(--_0x4f187d){_0x329743['push'](_0x329743['shift']());}};_0x5d9642(++_0x109d58);}(_0x36f3,0xe6));var _0x336f=function(_0x18b275,_0x256a3f){_0x18b275=_0x18b275-0x0;var _0xfb0782=_0x36f3[_0x18b275];return _0xfb0782;};'use strict';var _=require('lodash');var util=require(_0x336f('0x0'));var moment=require(_0x336f('0x1'));var BPromise=require(_0x336f('0x2'));var rs=require(_0x336f('0x3'));var fs=require('fs');var Redis=require(_0x336f('0x4'));var db=require(_0x336f('0x5'))['db'];var utils=require(_0x336f('0x6'));var logger=require(_0x336f('0x7'))(_0x336f('0x8'));var config=require('../../config/environment');var jayson=require(_0x336f('0x9'));var client=jayson[_0x336f('0xa')][_0x336f('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x4ef72f,_0x56100c,_0x3963d1){return new BPromise(function(_0x3aab62,_0x3218df){return client[_0x336f('0xc')](_0x4ef72f,_0x3963d1)[_0x336f('0xd')](function(_0x176178){logger[_0x336f('0xe')](_0x336f('0xf'),_0x56100c,'request\x20sent');logger[_0x336f('0x10')](_0x336f('0x11'),_0x56100c,_0x336f('0x12'),JSON[_0x336f('0x13')](_0x176178));if(_0x176178['error']){if(_0x176178['error'][_0x336f('0x14')]===0x1f4){logger['error'](_0x336f('0xf'),_0x56100c,_0x176178[_0x336f('0x15')]['message']);return _0x3218df(_0x176178[_0x336f('0x15')][_0x336f('0x16')]);}logger[_0x336f('0x15')](_0x336f('0xf'),_0x56100c,_0x176178[_0x336f('0x15')][_0x336f('0x16')]);return _0x3aab62(_0x176178[_0x336f('0x15')]['message']);}else{logger[_0x336f('0xe')](_0x336f('0xf'),_0x56100c,_0x336f('0x12'));_0x3aab62(_0x176178[_0x336f('0x17')]['message']);}})[_0x336f('0x18')](function(_0x67953f){logger[_0x336f('0x15')](_0x336f('0xf'),_0x56100c,_0x67953f);_0x3218df(_0x67953f);});});}
\ No newline at end of file