56d5da72383c90ac72465a4b231f4648a81ebaf5
[motion-next.git] / server / api / cmHopperFinal / cmHopperFinal.rpc.js
1 const a149_0x3a94=['raw','message','error','info','then','catch','debug','rpc','CmHopperFinal','stringify','create','CreateCmHopperFinal','options','../../config/logger'];(function(_0x3f35be,_0x3a94fc){const _0x1aff72=function(_0x59b3d6){while(--_0x59b3d6){_0x3f35be['push'](_0x3f35be['shift']());}};_0x1aff72(++_0x3a94fc);}(a149_0x3a94,0x9f));const a149_0x1aff=function(_0x3f35be,_0x3a94fc){_0x3f35be=_0x3f35be-0x0;let _0x1aff72=a149_0x3a94[_0x3f35be];return _0x1aff72;};const _0x500194=a149_0x1aff;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x500194('0x8'))(_0x500194('0x2'));exports['CreateCmHopperFinal']=function(_0x59b3d6){const _0x5c4f11=this;return new Promise(function(_0x29b056,_0x210650){const _0x475d87=a149_0x1aff;return db[_0x475d87('0x3')][_0x475d87('0x5')](_0x59b3d6['body'],{'raw':_0x59b3d6[_0x475d87('0x7')]?_0x59b3d6['options'][_0x475d87('0x9')]===undefined?!![]:![]:!![]})[_0x475d87('0xd')](function(_0xb5a400){const _0x39d85a=_0x475d87;logger[_0x39d85a('0xc')](_0x39d85a('0x6'),_0x59b3d6),logger[_0x39d85a('0x1')]('CreateCmHopperFinal',_0x59b3d6,JSON[_0x39d85a('0x4')](_0xb5a400)),_0x29b056(_0xb5a400);})[_0x475d87('0x0')](function(_0x58a3c2){const _0x3998fc=_0x475d87;logger[_0x3998fc('0xb')]('CreateCmHopperFinal',_0x58a3c2[_0x3998fc('0xa')],_0x59b3d6),_0x210650(_0x5c4f11[_0x3998fc('0xb')](0x1f4,_0x58a3c2[_0x3998fc('0xa')]));});});};