Built motion from commit b5996064.|2.6.21
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.rpc.js
index 96a864c..343c70c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xeda4=['request\x20sent','debug','stringify','code','message','error','result','catch','CreateVoiceTransferReport','VoiceTransferReport','create','body','options','raw','moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','then','info','VoiceTransferReport,\x20%s,\x20%s'];(function(_0x2f3848,_0x48564d){var _0x102668=function(_0x5e32ab){while(--_0x5e32ab){_0x2f3848['push'](_0x2f3848['shift']());}};_0x102668(++_0x48564d);}(_0xeda4,0x1f4));var _0x4eda=function(_0x2d4661,_0x2da65c){_0x2d4661=_0x2d4661-0x0;var _0x42ed1e=_0xeda4[_0x2d4661];return _0x42ed1e;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x4eda('0x0'));var BPromise=require(_0x4eda('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x4eda('0x2'));var db=require(_0x4eda('0x3'))['db'];var utils=require(_0x4eda('0x4'));var logger=require('../../config/logger')(_0x4eda('0x5'));var config=require(_0x4eda('0x6'));var jayson=require(_0x4eda('0x7'));var client=jayson[_0x4eda('0x8')][_0x4eda('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xbf0f4a,_0x419b20,_0x2e6059){return new BPromise(function(_0x3c6ea4,_0x155e87){return client['request'](_0xbf0f4a,_0x2e6059)[_0x4eda('0xa')](function(_0x18bbbd){logger[_0x4eda('0xb')](_0x4eda('0xc'),_0x419b20,_0x4eda('0xd'));logger[_0x4eda('0xe')]('VoiceTransferReport,\x20%s,\x20%s,\x20%s',_0x419b20,_0x4eda('0xd'),JSON[_0x4eda('0xf')](_0x18bbbd));if(_0x18bbbd['error']){if(_0x18bbbd['error'][_0x4eda('0x10')]===0x1f4){logger['error'](_0x4eda('0xc'),_0x419b20,_0x18bbbd['error'][_0x4eda('0x11')]);return _0x155e87(_0x18bbbd[_0x4eda('0x12')][_0x4eda('0x11')]);}logger[_0x4eda('0x12')]('VoiceTransferReport,\x20%s,\x20%s',_0x419b20,_0x18bbbd[_0x4eda('0x12')][_0x4eda('0x11')]);return _0x3c6ea4(_0x18bbbd[_0x4eda('0x12')][_0x4eda('0x11')]);}else{logger[_0x4eda('0xb')](_0x4eda('0xc'),_0x419b20,'request\x20sent');_0x3c6ea4(_0x18bbbd[_0x4eda('0x13')][_0x4eda('0x11')]);}})[_0x4eda('0x14')](function(_0x4ce221){logger[_0x4eda('0x12')](_0x4eda('0xc'),_0x419b20,_0x4ce221);_0x155e87(_0x4ce221);});});}exports[_0x4eda('0x15')]=function(_0x5b547a){var _0x1f6e8d=this;return new Promise(function(_0x192f31,_0x2fe041){return db[_0x4eda('0x16')][_0x4eda('0x17')](_0x5b547a[_0x4eda('0x18')],{'raw':_0x5b547a[_0x4eda('0x19')]?_0x5b547a['options'][_0x4eda('0x1a')]===undefined?!![]:![]:!![]})[_0x4eda('0xa')](function(_0x25fa5f){logger['info']('CreateVoiceTransferReport',_0x5b547a);logger['debug'](_0x4eda('0x15'),_0x5b547a,JSON[_0x4eda('0xf')](_0x25fa5f));_0x192f31(_0x25fa5f);})['catch'](function(_0x4cda3d){logger[_0x4eda('0x12')](_0x4eda('0x15'),_0x4cda3d['message'],_0x5b547a);_0x2fe041(_0x1f6e8d[_0x4eda('0x12')](0x1f4,_0x4cda3d[_0x4eda('0x11')]));});});};
\ No newline at end of file
+var _0x2a9f=['code','message','result','catch','CreateVoiceTransferReport','create','body','options','then','lodash','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','info','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','stringify','error'];(function(_0x618414,_0x1a7a60){var _0x21c19a=function(_0x507b17){while(--_0x507b17){_0x618414['push'](_0x618414['shift']());}};_0x21c19a(++_0x1a7a60);}(_0x2a9f,0x191));var _0xf2a9=function(_0x578761,_0x13d455){_0x578761=_0x578761-0x0;var _0x20c626=_0x2a9f[_0x578761];return _0x20c626;};'use strict';var _=require(_0xf2a9('0x0'));var util=require(_0xf2a9('0x1'));var moment=require(_0xf2a9('0x2'));var BPromise=require('bluebird');var rs=require(_0xf2a9('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf2a9('0x4'))['db'];var utils=require(_0xf2a9('0x5'));var logger=require(_0xf2a9('0x6'))(_0xf2a9('0x7'));var config=require(_0xf2a9('0x8'));var jayson=require(_0xf2a9('0x9'));var client=jayson[_0xf2a9('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2f7715,_0x25d4e3,_0x157043){return new BPromise(function(_0x5e4084,_0x36c91b){return client[_0xf2a9('0xb')](_0x2f7715,_0x157043)['then'](function(_0x28bfe5){logger[_0xf2a9('0xc')](_0xf2a9('0xd'),_0x25d4e3,_0xf2a9('0xe'));logger[_0xf2a9('0xf')](_0xf2a9('0x10'),_0x25d4e3,_0xf2a9('0xe'),JSON[_0xf2a9('0x11')](_0x28bfe5));if(_0x28bfe5['error']){if(_0x28bfe5[_0xf2a9('0x12')][_0xf2a9('0x13')]===0x1f4){logger[_0xf2a9('0x12')](_0xf2a9('0xd'),_0x25d4e3,_0x28bfe5[_0xf2a9('0x12')][_0xf2a9('0x14')]);return _0x36c91b(_0x28bfe5[_0xf2a9('0x12')][_0xf2a9('0x14')]);}logger[_0xf2a9('0x12')](_0xf2a9('0xd'),_0x25d4e3,_0x28bfe5[_0xf2a9('0x12')][_0xf2a9('0x14')]);return _0x5e4084(_0x28bfe5[_0xf2a9('0x12')][_0xf2a9('0x14')]);}else{logger[_0xf2a9('0xc')](_0xf2a9('0xd'),_0x25d4e3,_0xf2a9('0xe'));_0x5e4084(_0x28bfe5[_0xf2a9('0x15')][_0xf2a9('0x14')]);}})[_0xf2a9('0x16')](function(_0x4684ee){logger[_0xf2a9('0x12')](_0xf2a9('0xd'),_0x25d4e3,_0x4684ee);_0x36c91b(_0x4684ee);});});}exports[_0xf2a9('0x17')]=function(_0x26d7b6){var _0x39c852=this;return new Promise(function(_0x2b6212,_0x1ccd87){return db['VoiceTransferReport'][_0xf2a9('0x18')](_0x26d7b6[_0xf2a9('0x19')],{'raw':_0x26d7b6[_0xf2a9('0x1a')]?_0x26d7b6[_0xf2a9('0x1a')]['raw']===undefined?!![]:![]:!![]})[_0xf2a9('0x1b')](function(_0x3b5946){logger[_0xf2a9('0xc')](_0xf2a9('0x17'),_0x26d7b6);logger[_0xf2a9('0xf')]('CreateVoiceTransferReport',_0x26d7b6,JSON[_0xf2a9('0x11')](_0x3b5946));_0x2b6212(_0x3b5946);})[_0xf2a9('0x16')](function(_0x27ffd3){logger['error'](_0xf2a9('0x17'),_0x27ffd3[_0xf2a9('0x14')],_0x26d7b6);_0x1ccd87(_0x39c852[_0xf2a9('0x12')](0x1f4,_0x27ffd3[_0xf2a9('0x14')]));});});};
\ No newline at end of file