Built motion from commit 538092ac.|2.6.10
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.rpc.js
index b613a13..0557b4d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x257f=['client','http','request','then','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','error','code','message','info','result','catch','CreateVoiceTransferReport','body','options','raw','lodash','moment','bluebird','ioredis','../../config/environment','jayson/promise'];(function(_0x533daf,_0x19a7bf){var _0x3c161f=function(_0x521824){while(--_0x521824){_0x533daf['push'](_0x533daf['shift']());}};_0x3c161f(++_0x19a7bf);}(_0x257f,0x1c2));var _0xf257=function(_0x116a65,_0x3e89d8){_0x116a65=_0x116a65-0x0;var _0x104024=_0x257f[_0x116a65];return _0x104024;};'use strict';var _=require(_0xf257('0x0'));var util=require('util');var moment=require(_0xf257('0x1'));var BPromise=require(_0xf257('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf257('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')('rpc');var config=require(_0xf257('0x4'));var jayson=require(_0xf257('0x5'));var client=jayson[_0xf257('0x6')][_0xf257('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x4e00c2,_0x1f88ae,_0x367de7){return new BPromise(function(_0x370e91,_0x43b7ed){return client[_0xf257('0x8')](_0x4e00c2,_0x367de7)[_0xf257('0x9')](function(_0x29c61f){logger['info'](_0xf257('0xa'),_0x1f88ae,_0xf257('0xb'));logger[_0xf257('0xc')](_0xf257('0xd'),_0x1f88ae,_0xf257('0xb'),JSON['stringify'](_0x29c61f));if(_0x29c61f[_0xf257('0xe')]){if(_0x29c61f['error'][_0xf257('0xf')]===0x1f4){logger[_0xf257('0xe')](_0xf257('0xa'),_0x1f88ae,_0x29c61f[_0xf257('0xe')]['message']);return _0x43b7ed(_0x29c61f[_0xf257('0xe')][_0xf257('0x10')]);}logger['error'](_0xf257('0xa'),_0x1f88ae,_0x29c61f['error'][_0xf257('0x10')]);return _0x370e91(_0x29c61f[_0xf257('0xe')][_0xf257('0x10')]);}else{logger[_0xf257('0x11')](_0xf257('0xa'),_0x1f88ae,'request\x20sent');_0x370e91(_0x29c61f[_0xf257('0x12')][_0xf257('0x10')]);}})[_0xf257('0x13')](function(_0x203027){logger[_0xf257('0xe')](_0xf257('0xa'),_0x1f88ae,_0x203027);_0x43b7ed(_0x203027);});});}exports[_0xf257('0x14')]=function(_0xd019ac){var _0x12b578=this;return new Promise(function(_0x43182a,_0x346a2e){return db['VoiceTransferReport']['create'](_0xd019ac[_0xf257('0x15')],{'raw':_0xd019ac[_0xf257('0x16')]?_0xd019ac['options'][_0xf257('0x17')]===undefined?!![]:![]:!![]})['then'](function(_0x58c728){logger[_0xf257('0x11')]('CreateVoiceTransferReport',_0xd019ac);logger[_0xf257('0xc')]('CreateVoiceTransferReport',_0xd019ac,JSON['stringify'](_0x58c728));_0x43182a(_0x58c728);})[_0xf257('0x13')](function(_0x41e357){logger[_0xf257('0xe')](_0xf257('0x14'),_0x41e357[_0xf257('0x10')],_0xd019ac);_0x346a2e(_0x12b578['error'](0x1f4,_0x41e357[_0xf257('0x10')]));});});};
\ No newline at end of file
+var _0xfe83=['then','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','CreateVoiceTransferReport','VoiceTransferReport','options','raw','info','lodash','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x15abd9,_0x46b856){var _0x58fd5f=function(_0x1668a3){while(--_0x1668a3){_0x15abd9['push'](_0x15abd9['shift']());}};_0x58fd5f(++_0x46b856);}(_0xfe83,0xe0));var _0x3fe8=function(_0x4982a5,_0xad13ed){_0x4982a5=_0x4982a5-0x0;var _0x26f5ff=_0xfe83[_0x4982a5];return _0x26f5ff;};'use strict';var _=require(_0x3fe8('0x0'));var util=require('util');var moment=require(_0x3fe8('0x1'));var BPromise=require('bluebird');var rs=require(_0x3fe8('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x3fe8('0x3'))['db'];var utils=require(_0x3fe8('0x4'));var logger=require(_0x3fe8('0x5'))(_0x3fe8('0x6'));var config=require(_0x3fe8('0x7'));var jayson=require(_0x3fe8('0x8'));var client=jayson[_0x3fe8('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1ecef4,_0x243532,_0x2bb1d8){return new BPromise(function(_0x311f1f,_0x5def09){return client['request'](_0x1ecef4,_0x2bb1d8)[_0x3fe8('0xa')](function(_0x50ab1d){logger['info'](_0x3fe8('0xb'),_0x243532,_0x3fe8('0xc'));logger[_0x3fe8('0xd')](_0x3fe8('0xe'),_0x243532,_0x3fe8('0xc'),JSON[_0x3fe8('0xf')](_0x50ab1d));if(_0x50ab1d[_0x3fe8('0x10')]){if(_0x50ab1d[_0x3fe8('0x10')][_0x3fe8('0x11')]===0x1f4){logger[_0x3fe8('0x10')](_0x3fe8('0xb'),_0x243532,_0x50ab1d['error'][_0x3fe8('0x12')]);return _0x5def09(_0x50ab1d[_0x3fe8('0x10')][_0x3fe8('0x12')]);}logger[_0x3fe8('0x10')]('VoiceTransferReport,\x20%s,\x20%s',_0x243532,_0x50ab1d[_0x3fe8('0x10')]['message']);return _0x311f1f(_0x50ab1d[_0x3fe8('0x10')]['message']);}else{logger['info'](_0x3fe8('0xb'),_0x243532,_0x3fe8('0xc'));_0x311f1f(_0x50ab1d[_0x3fe8('0x13')]['message']);}})[_0x3fe8('0x14')](function(_0x42c905){logger[_0x3fe8('0x10')](_0x3fe8('0xb'),_0x243532,_0x42c905);_0x5def09(_0x42c905);});});}exports[_0x3fe8('0x15')]=function(_0x28764d){var _0x24923f=this;return new Promise(function(_0x56d687,_0x53ecaf){return db[_0x3fe8('0x16')]['create'](_0x28764d['body'],{'raw':_0x28764d[_0x3fe8('0x17')]?_0x28764d[_0x3fe8('0x17')][_0x3fe8('0x18')]===undefined?!![]:![]:!![]})[_0x3fe8('0xa')](function(_0x427cb3){logger[_0x3fe8('0x19')](_0x3fe8('0x15'),_0x28764d);logger[_0x3fe8('0xd')](_0x3fe8('0x15'),_0x28764d,JSON[_0x3fe8('0xf')](_0x427cb3));_0x56d687(_0x427cb3);})['catch'](function(_0x1d6733){logger[_0x3fe8('0x10')](_0x3fe8('0x15'),_0x1d6733[_0x3fe8('0x12')],_0x28764d);_0x53ecaf(_0x24923f[_0x3fe8('0x10')](0x1f4,_0x1d6733[_0x3fe8('0x12')]));});});};
\ No newline at end of file