Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / intDeskField / intDeskField.rpc.js
index d98c059..21cce52 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe36b=['../../config/logger','rpc','../../config/environment','jayson/promise','client','request','info','request\x20sent','debug','DeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','DeskField,\x20%s,\x20%s','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb'];(function(_0x250f31,_0x316bde){var _0x4c6c6c=function(_0x58ab9a){while(--_0x58ab9a){_0x250f31['push'](_0x250f31['shift']());}};_0x4c6c6c(++_0x316bde);}(_0xe36b,0x181));var _0xbe36=function(_0x33da21,_0x36f5d7){_0x33da21=_0x33da21-0x0;var _0xa0ff8a=_0xe36b[_0x33da21];return _0xa0ff8a;};'use strict';var _=require(_0xbe36('0x0'));var util=require(_0xbe36('0x1'));var moment=require(_0xbe36('0x2'));var BPromise=require(_0xbe36('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xbe36('0x4'));var db=require(_0xbe36('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xbe36('0x6'))(_0xbe36('0x7'));var config=require(_0xbe36('0x8'));var jayson=require(_0xbe36('0x9'));var client=jayson[_0xbe36('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5ed60f,_0xd0a58b,_0x1979ae){return new BPromise(function(_0x1e915b,_0x56746f){return client[_0xbe36('0xb')](_0x5ed60f,_0x1979ae)['then'](function(_0x14567f){logger[_0xbe36('0xc')]('DeskField,\x20%s,\x20%s',_0xd0a58b,_0xbe36('0xd'));logger[_0xbe36('0xe')](_0xbe36('0xf'),_0xd0a58b,_0xbe36('0xd'),JSON[_0xbe36('0x10')](_0x14567f));if(_0x14567f[_0xbe36('0x11')]){if(_0x14567f[_0xbe36('0x11')][_0xbe36('0x12')]===0x1f4){logger[_0xbe36('0x11')]('DeskField,\x20%s,\x20%s',_0xd0a58b,_0x14567f[_0xbe36('0x11')][_0xbe36('0x13')]);return _0x56746f(_0x14567f['error'][_0xbe36('0x13')]);}logger['error']('DeskField,\x20%s,\x20%s',_0xd0a58b,_0x14567f['error'][_0xbe36('0x13')]);return _0x1e915b(_0x14567f['error'][_0xbe36('0x13')]);}else{logger[_0xbe36('0xc')](_0xbe36('0x14'),_0xd0a58b,_0xbe36('0xd'));_0x1e915b(_0x14567f[_0xbe36('0x15')][_0xbe36('0x13')]);}})[_0xbe36('0x16')](function(_0x38891d){logger[_0xbe36('0x11')](_0xbe36('0x14'),_0xd0a58b,_0x38891d);_0x56746f(_0x38891d);});});}
\ 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