Built motion from commit 71df090e.|2.6.31
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.rpc.js
index 57d7b8d..31e01fe 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcfcc=['debug','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','then','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','VoiceTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','CreateVoiceTransferReport','create','body','raw'];(function(_0x33d403,_0x3367d6){var _0x32db81=function(_0x3e6e04){while(--_0x3e6e04){_0x33d403['push'](_0x33d403['shift']());}};_0x32db81(++_0x3367d6);}(_0xcfcc,0xb7));var _0xccfc=function(_0x15a8cf,_0x428a81){_0x15a8cf=_0x15a8cf-0x0;var _0x335b5e=_0xcfcc[_0x15a8cf];return _0x335b5e;};'use strict';var _=require(_0xccfc('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xccfc('0x1'));var rs=require(_0xccfc('0x2'));var fs=require('fs');var Redis=require(_0xccfc('0x3'));var db=require(_0xccfc('0x4'))['db'];var utils=require(_0xccfc('0x5'));var logger=require(_0xccfc('0x6'))(_0xccfc('0x7'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xccfc('0x8')][_0xccfc('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xbb97d5,_0x3b0c59,_0x5344b7){return new BPromise(function(_0xb60669,_0x3df87f){return client['request'](_0xbb97d5,_0x5344b7)[_0xccfc('0xa')](function(_0x340eb2){logger['info'](_0xccfc('0xb'),_0x3b0c59,_0xccfc('0xc'));logger['debug'](_0xccfc('0xd'),_0x3b0c59,'request\x20sent',JSON[_0xccfc('0xe')](_0x340eb2));if(_0x340eb2['error']){if(_0x340eb2[_0xccfc('0xf')][_0xccfc('0x10')]===0x1f4){logger[_0xccfc('0xf')]('VoiceTransferReport,\x20%s,\x20%s',_0x3b0c59,_0x340eb2[_0xccfc('0xf')][_0xccfc('0x11')]);return _0x3df87f(_0x340eb2[_0xccfc('0xf')][_0xccfc('0x11')]);}logger[_0xccfc('0xf')](_0xccfc('0xb'),_0x3b0c59,_0x340eb2['error']['message']);return _0xb60669(_0x340eb2[_0xccfc('0xf')][_0xccfc('0x11')]);}else{logger[_0xccfc('0x12')](_0xccfc('0xb'),_0x3b0c59,_0xccfc('0xc'));_0xb60669(_0x340eb2[_0xccfc('0x13')][_0xccfc('0x11')]);}})[_0xccfc('0x14')](function(_0x851ef3){logger['error'](_0xccfc('0xb'),_0x3b0c59,_0x851ef3);_0x3df87f(_0x851ef3);});});}exports[_0xccfc('0x15')]=function(_0x45b577){var _0x2ac374=this;return new Promise(function(_0x381a97,_0x2ebace){return db['VoiceTransferReport'][_0xccfc('0x16')](_0x45b577[_0xccfc('0x17')],{'raw':_0x45b577['options']?_0x45b577['options'][_0xccfc('0x18')]===undefined?!![]:![]:!![]})[_0xccfc('0xa')](function(_0x51bfee){logger[_0xccfc('0x12')](_0xccfc('0x15'),_0x45b577);logger[_0xccfc('0x19')]('CreateVoiceTransferReport',_0x45b577,JSON[_0xccfc('0xe')](_0x51bfee));_0x381a97(_0x51bfee);})[_0xccfc('0x14')](function(_0x1363b6){logger['error'](_0xccfc('0x15'),_0x1363b6[_0xccfc('0x11')],_0x45b577);_0x2ebace(_0x2ac374['error'](0x1f4,_0x1363b6[_0xccfc('0x11')]));});});};
\ No newline at end of file
+var _0xe7f0=['request\x20sent','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','error','code','VoiceTransferReport,\x20%s,\x20%s','message','result','catch','CreateVoiceTransferReport','VoiceTransferReport','create','body','options','raw','then','stringify','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','info'];(function(_0x5bf46c,_0x1fe508){var _0x5a37c4=function(_0x2cf2c3){while(--_0x2cf2c3){_0x5bf46c['push'](_0x5bf46c['shift']());}};_0x5a37c4(++_0x1fe508);}(_0xe7f0,0x147));var _0x0e7f=function(_0x466af7,_0x2f7551){_0x466af7=_0x466af7-0x0;var _0x348c96=_0xe7f0[_0x466af7];return _0x348c96;};'use strict';var _=require(_0x0e7f('0x0'));var util=require(_0x0e7f('0x1'));var moment=require(_0x0e7f('0x2'));var BPromise=require(_0x0e7f('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x0e7f('0x4'));var db=require(_0x0e7f('0x5'))['db'];var utils=require(_0x0e7f('0x6'));var logger=require(_0x0e7f('0x7'))(_0x0e7f('0x8'));var config=require(_0x0e7f('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x0e7f('0xa')][_0x0e7f('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x4eeea6,_0x119c4b,_0x3ef4cf){return new BPromise(function(_0x116005,_0x12ed96){return client[_0x0e7f('0xc')](_0x4eeea6,_0x3ef4cf)['then'](function(_0x5e2117){logger[_0x0e7f('0xd')]('VoiceTransferReport,\x20%s,\x20%s',_0x119c4b,_0x0e7f('0xe'));logger[_0x0e7f('0xf')](_0x0e7f('0x10'),_0x119c4b,'request\x20sent',JSON['stringify'](_0x5e2117));if(_0x5e2117[_0x0e7f('0x11')]){if(_0x5e2117[_0x0e7f('0x11')][_0x0e7f('0x12')]===0x1f4){logger[_0x0e7f('0x11')](_0x0e7f('0x13'),_0x119c4b,_0x5e2117['error'][_0x0e7f('0x14')]);return _0x12ed96(_0x5e2117[_0x0e7f('0x11')]['message']);}logger[_0x0e7f('0x11')](_0x0e7f('0x13'),_0x119c4b,_0x5e2117[_0x0e7f('0x11')]['message']);return _0x116005(_0x5e2117[_0x0e7f('0x11')][_0x0e7f('0x14')]);}else{logger[_0x0e7f('0xd')](_0x0e7f('0x13'),_0x119c4b,_0x0e7f('0xe'));_0x116005(_0x5e2117[_0x0e7f('0x15')][_0x0e7f('0x14')]);}})[_0x0e7f('0x16')](function(_0x33d424){logger['error']('VoiceTransferReport,\x20%s,\x20%s',_0x119c4b,_0x33d424);_0x12ed96(_0x33d424);});});}exports[_0x0e7f('0x17')]=function(_0x3f70e8){var _0x3103d2=this;return new Promise(function(_0x4e15dd,_0x1ae644){return db[_0x0e7f('0x18')][_0x0e7f('0x19')](_0x3f70e8[_0x0e7f('0x1a')],{'raw':_0x3f70e8['options']?_0x3f70e8[_0x0e7f('0x1b')][_0x0e7f('0x1c')]===undefined?!![]:![]:!![]})[_0x0e7f('0x1d')](function(_0x5d78dd){logger[_0x0e7f('0xd')]('CreateVoiceTransferReport',_0x3f70e8);logger['debug'](_0x0e7f('0x17'),_0x3f70e8,JSON[_0x0e7f('0x1e')](_0x5d78dd));_0x4e15dd(_0x5d78dd);})[_0x0e7f('0x16')](function(_0x3f97ae){logger[_0x0e7f('0x11')](_0x0e7f('0x17'),_0x3f97ae['message'],_0x3f70e8);_0x1ae644(_0x3103d2[_0x0e7f('0x11')](0x1f4,_0x3f97ae[_0x0e7f('0x14')]));});});};
\ No newline at end of file