50440a047403715da2a55813c7f4a9f46d36ed31
[motion-next.git] / server / api / voiceTransferReport / voiceTransferReport.rpc.js
1 const a778_0x47f1=['VoiceTransferReport','options','debug','stringify','rpc','CreateVoiceTransferReport','message','raw','catch','info','then','body','../../config/logger','error','create'];(function(_0xf40204,_0x47f1b3){const _0x18228a=function(_0x2961e9){while(--_0x2961e9){_0xf40204['push'](_0xf40204['shift']());}};_0x18228a(++_0x47f1b3);}(a778_0x47f1,0x1f1));const a778_0x1822=function(_0xf40204,_0x47f1b3){_0xf40204=_0xf40204-0x0;let _0x18228a=a778_0x47f1[_0xf40204];return _0x18228a;};const _0x36e490=a778_0x1822;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x36e490('0xa'))(_0x36e490('0x2'));exports[_0x36e490('0x3')]=function(_0x2961e9){const _0x1327cb=this;return new Promise(function(_0x1d1bba,_0x140cc4){const _0x23e75d=a778_0x1822;return db[_0x23e75d('0xd')][_0x23e75d('0xc')](_0x2961e9[_0x23e75d('0x9')],{'raw':_0x2961e9['options']?_0x2961e9[_0x23e75d('0xe')][_0x23e75d('0x5')]===undefined?!![]:![]:!![]})[_0x23e75d('0x8')](function(_0x57e8f8){const _0x139d02=_0x23e75d;logger[_0x139d02('0x7')](_0x139d02('0x3'),_0x2961e9),logger[_0x139d02('0x0')](_0x139d02('0x3'),_0x2961e9,JSON[_0x139d02('0x1')](_0x57e8f8)),_0x1d1bba(_0x57e8f8);})[_0x23e75d('0x6')](function(_0x412500){const _0x19c8d4=_0x23e75d;logger[_0x19c8d4('0xb')]('CreateVoiceTransferReport',_0x412500[_0x19c8d4('0x4')],_0x2961e9),_0x140cc4(_0x1327cb['error'](0x1f4,_0x412500[_0x19c8d4('0x4')]));});});};