Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / intDeskField / intDeskField.rpc.js
index 92b755e..21cce52 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x710d=['then','info','request\x20sent','debug','DeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','DeskField,\x20%s,\x20%s','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request'];(function(_0x4c52ff,_0xe7a7e1){var _0x4dbaa5=function(_0x5cfa0f){while(--_0x5cfa0f){_0x4c52ff['push'](_0x4c52ff['shift']());}};_0x4dbaa5(++_0xe7a7e1);}(_0x710d,0xa1));var _0xd710=function(_0x5b3950,_0x4e5556){_0x5b3950=_0x5b3950-0x0;var _0x41e436=_0x710d[_0x5b3950];return _0x41e436;};'use strict';var _=require(_0xd710('0x0'));var util=require(_0xd710('0x1'));var moment=require(_0xd710('0x2'));var BPromise=require(_0xd710('0x3'));var rs=require(_0xd710('0x4'));var fs=require('fs');var Redis=require(_0xd710('0x5'));var db=require(_0xd710('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0xd710('0x7'))(_0xd710('0x8'));var config=require(_0xd710('0x9'));var jayson=require(_0xd710('0xa'));var client=jayson[_0xd710('0xb')][_0xd710('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x51fe19,_0x56a007,_0x5cb296){return new BPromise(function(_0x52ba25,_0x5b42d0){return client[_0xd710('0xd')](_0x51fe19,_0x5cb296)[_0xd710('0xe')](function(_0x4b5a99){logger[_0xd710('0xf')]('DeskField,\x20%s,\x20%s',_0x56a007,_0xd710('0x10'));logger[_0xd710('0x11')](_0xd710('0x12'),_0x56a007,_0xd710('0x10'),JSON[_0xd710('0x13')](_0x4b5a99));if(_0x4b5a99[_0xd710('0x14')]){if(_0x4b5a99['error'][_0xd710('0x15')]===0x1f4){logger[_0xd710('0x14')](_0xd710('0x16'),_0x56a007,_0x4b5a99[_0xd710('0x14')][_0xd710('0x17')]);return _0x5b42d0(_0x4b5a99['error']['message']);}logger[_0xd710('0x14')]('DeskField,\x20%s,\x20%s',_0x56a007,_0x4b5a99[_0xd710('0x14')][_0xd710('0x17')]);return _0x52ba25(_0x4b5a99[_0xd710('0x14')][_0xd710('0x17')]);}else{logger['info']('DeskField,\x20%s,\x20%s',_0x56a007,_0xd710('0x10'));_0x52ba25(_0x4b5a99[_0xd710('0x18')]['message']);}})['catch'](function(_0xad20e5){logger['error'](_0xd710('0x16'),_0x56a007,_0xad20e5);_0x5b42d0(_0xad20e5);});});}
\ No newline at end of file
+var _0x9fe6=['code','message','result','catch','util','moment','bluebird','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','request','then','info','DeskField,\x20%s,\x20%s','DeskField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error'];(function(_0x26f1b2,_0x33d843){var _0x1624a4=function(_0x58dfb7){while(--_0x58dfb7){_0x26f1b2['push'](_0x26f1b2['shift']());}};_0x1624a4(++_0x33d843);}(_0x9fe6,0x1bc));var _0x69fe=function(_0x3ad850,_0x4d8004){_0x3ad850=_0x3ad850-0x0;var _0x5326ab=_0x9fe6[_0x3ad850];return _0x5326ab;};'use strict';var _=require('lodash');var util=require(_0x69fe('0x0'));var moment=require(_0x69fe('0x1'));var BPromise=require(_0x69fe('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x69fe('0x3'));var db=require(_0x69fe('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x69fe('0x5'))(_0x69fe('0x6'));var config=require('../../config/environment');var jayson=require(_0x69fe('0x7'));var client=jayson[_0x69fe('0x8')][_0x69fe('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xd2e696,_0x1c1f2f,_0xf22e83){return new BPromise(function(_0xb7312c,_0x1e90af){return client[_0x69fe('0xa')](_0xd2e696,_0xf22e83)[_0x69fe('0xb')](function(_0x3a83de){logger[_0x69fe('0xc')](_0x69fe('0xd'),_0x1c1f2f,'request\x20sent');logger['debug'](_0x69fe('0xe'),_0x1c1f2f,_0x69fe('0xf'),JSON[_0x69fe('0x10')](_0x3a83de));if(_0x3a83de[_0x69fe('0x11')]){if(_0x3a83de[_0x69fe('0x11')][_0x69fe('0x12')]===0x1f4){logger[_0x69fe('0x11')](_0x69fe('0xd'),_0x1c1f2f,_0x3a83de['error']['message']);return _0x1e90af(_0x3a83de[_0x69fe('0x11')][_0x69fe('0x13')]);}logger[_0x69fe('0x11')](_0x69fe('0xd'),_0x1c1f2f,_0x3a83de['error'][_0x69fe('0x13')]);return _0xb7312c(_0x3a83de[_0x69fe('0x11')]['message']);}else{logger['info'](_0x69fe('0xd'),_0x1c1f2f,_0x69fe('0xf'));_0xb7312c(_0x3a83de[_0x69fe('0x14')][_0x69fe('0x13')]);}})[_0x69fe('0x15')](function(_0x3440c7){logger['error'](_0x69fe('0xd'),_0x1c1f2f,_0x3440c7);_0x1e90af(_0x3440c7);});});}
\ No newline at end of file