Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.rpc.js
index 6eb0cfb..0571cb5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x894f=['../../config/utils','../../config/environment','jayson/promise','request','then','info','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','CreateVoiceTransferReport','VoiceTransferReport','create','options','raw','catch','lodash','util','moment','bluebird','../../mysqldb'];(function(_0x32d457,_0x1a39c9){var _0x338386=function(_0x199d7a){while(--_0x199d7a){_0x32d457['push'](_0x32d457['shift']());}};_0x338386(++_0x1a39c9);}(_0x894f,0x14d));var _0xf894=function(_0x459fe7,_0x33ff61){_0x459fe7=_0x459fe7-0x0;var _0x391f4d=_0x894f[_0x459fe7];return _0x391f4d;};'use strict';var _=require(_0xf894('0x0'));var util=require(_0xf894('0x1'));var moment=require(_0xf894('0x2'));var BPromise=require(_0xf894('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf894('0x4'))['db'];var utils=require(_0xf894('0x5'));var logger=require('../../config/logger')('rpc');var config=require(_0xf894('0x6'));var jayson=require(_0xf894('0x7'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x23a9fc,_0x371f86,_0x56d9d6){return new BPromise(function(_0x190cb1,_0x3d8f21){return client[_0xf894('0x8')](_0x23a9fc,_0x56d9d6)[_0xf894('0x9')](function(_0x10bb84){logger[_0xf894('0xa')](_0xf894('0xb'),_0x371f86,_0xf894('0xc'));logger[_0xf894('0xd')](_0xf894('0xe'),_0x371f86,_0xf894('0xc'),JSON[_0xf894('0xf')](_0x10bb84));if(_0x10bb84[_0xf894('0x10')]){if(_0x10bb84[_0xf894('0x10')][_0xf894('0x11')]===0x1f4){logger[_0xf894('0x10')](_0xf894('0xb'),_0x371f86,_0x10bb84[_0xf894('0x10')][_0xf894('0x12')]);return _0x3d8f21(_0x10bb84[_0xf894('0x10')][_0xf894('0x12')]);}logger[_0xf894('0x10')]('VoiceTransferReport,\x20%s,\x20%s',_0x371f86,_0x10bb84[_0xf894('0x10')]['message']);return _0x190cb1(_0x10bb84['error'][_0xf894('0x12')]);}else{logger[_0xf894('0xa')](_0xf894('0xb'),_0x371f86,_0xf894('0xc'));_0x190cb1(_0x10bb84[_0xf894('0x13')]['message']);}})['catch'](function(_0x1865be){logger['error']('VoiceTransferReport,\x20%s,\x20%s',_0x371f86,_0x1865be);_0x3d8f21(_0x1865be);});});}exports[_0xf894('0x14')]=function(_0x340345){var _0x3f29f1=this;return new Promise(function(_0x4bd77c,_0x45d995){return db[_0xf894('0x15')][_0xf894('0x16')](_0x340345['body'],{'raw':_0x340345['options']?_0x340345[_0xf894('0x17')][_0xf894('0x18')]===undefined?!![]:![]:!![]})[_0xf894('0x9')](function(_0x3abfd1){logger[_0xf894('0xa')](_0xf894('0x14'),_0x340345);logger[_0xf894('0xd')](_0xf894('0x14'),_0x340345,JSON[_0xf894('0xf')](_0x3abfd1));_0x4bd77c(_0x3abfd1);})[_0xf894('0x19')](function(_0x1ccbd1){logger[_0xf894('0x10')]('CreateVoiceTransferReport',_0x1ccbd1[_0xf894('0x12')],_0x340345);_0x45d995(_0x3f29f1['error'](0x1f4,_0x1ccbd1['message']));});});};
\ No newline at end of file
+var _0x902d=['VoiceTransferReport,\x20%s,\x20%s,\x20%s','error','code','message','catch','CreateVoiceTransferReport','create','options','raw','stringify','lodash','util','moment','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','info','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x139a3c,_0x4fc883){var _0x2b375b=function(_0x525dbf){while(--_0x525dbf){_0x139a3c['push'](_0x139a3c['shift']());}};_0x2b375b(++_0x4fc883);}(_0x902d,0x12a));var _0xd902=function(_0x576f30,_0x22d6d0){_0x576f30=_0x576f30-0x0;var _0x4869ec=_0x902d[_0x576f30];return _0x4869ec;};'use strict';var _=require(_0xd902('0x0'));var util=require(_0xd902('0x1'));var moment=require(_0xd902('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xd902('0x3'))(_0xd902('0x4'));var config=require(_0xd902('0x5'));var jayson=require(_0xd902('0x6'));var client=jayson[_0xd902('0x7')][_0xd902('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x25b869,_0x2a708b,_0x22bf8e){return new BPromise(function(_0x5872b8,_0x333baf){return client[_0xd902('0x9')](_0x25b869,_0x22bf8e)['then'](function(_0x15fe57){logger[_0xd902('0xa')](_0xd902('0xb'),_0x2a708b,_0xd902('0xc'));logger[_0xd902('0xd')](_0xd902('0xe'),_0x2a708b,'request\x20sent',JSON['stringify'](_0x15fe57));if(_0x15fe57[_0xd902('0xf')]){if(_0x15fe57['error'][_0xd902('0x10')]===0x1f4){logger[_0xd902('0xf')]('VoiceTransferReport,\x20%s,\x20%s',_0x2a708b,_0x15fe57['error']['message']);return _0x333baf(_0x15fe57['error'][_0xd902('0x11')]);}logger['error'](_0xd902('0xb'),_0x2a708b,_0x15fe57[_0xd902('0xf')][_0xd902('0x11')]);return _0x5872b8(_0x15fe57[_0xd902('0xf')][_0xd902('0x11')]);}else{logger[_0xd902('0xa')](_0xd902('0xb'),_0x2a708b,_0xd902('0xc'));_0x5872b8(_0x15fe57['result'][_0xd902('0x11')]);}})[_0xd902('0x12')](function(_0x2cc51b){logger['error']('VoiceTransferReport,\x20%s,\x20%s',_0x2a708b,_0x2cc51b);_0x333baf(_0x2cc51b);});});}exports[_0xd902('0x13')]=function(_0x1235ef){var _0x12379e=this;return new Promise(function(_0x142776,_0x3e6f8e){return db['VoiceTransferReport'][_0xd902('0x14')](_0x1235ef['body'],{'raw':_0x1235ef[_0xd902('0x15')]?_0x1235ef['options'][_0xd902('0x16')]===undefined?!![]:![]:!![]})['then'](function(_0x1105eb){logger[_0xd902('0xa')](_0xd902('0x13'),_0x1235ef);logger[_0xd902('0xd')](_0xd902('0x13'),_0x1235ef,JSON[_0xd902('0x17')](_0x1105eb));_0x142776(_0x1105eb);})[_0xd902('0x12')](function(_0x4e811c){logger[_0xd902('0xf')]('CreateVoiceTransferReport',_0x4e811c[_0xd902('0x11')],_0x1235ef);_0x3e6f8e(_0x12379e[_0xd902('0xf')](0x1f4,_0x4e811c[_0xd902('0x11')]));});});};
\ No newline at end of file