788464dd00f27e5258bdf3a14d144f73adedaf2d
[motion-next.git] / server / api / faxApplication / faxApplication.rpc.js
1 const a195_0x4a2b=['error','options','where','raw','message','catch','UpdateFaxApplication','debug','FaxApplication','then','rpc','update','attributes'];(function(_0x502d0f,_0x4a2b97){const _0x59457f=function(_0x4168bc){while(--_0x4168bc){_0x502d0f['push'](_0x502d0f['shift']());}};_0x59457f(++_0x4a2b97);}(a195_0x4a2b,0x105));const a195_0x5945=function(_0x502d0f,_0x4a2b97){_0x502d0f=_0x502d0f-0x0;let _0x59457f=a195_0x4a2b[_0x502d0f];return _0x59457f;};const _0x315ac8=a195_0x5945;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x315ac8('0x9'));exports[_0x315ac8('0x5')]=function(_0x4168bc){const _0x1070fe=this;return new Promise(function(_0x17af8a,_0xfd6a89){const _0x22db8e=a195_0x5945;return db[_0x22db8e('0x7')][_0x22db8e('0xa')](_0x4168bc['body'],{'raw':_0x4168bc[_0x22db8e('0x0')]?_0x4168bc['options'][_0x22db8e('0x2')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4168bc[_0x22db8e('0x0')]?_0x4168bc['options'][_0x22db8e('0x1')]||null:null,'attributes':_0x4168bc[_0x22db8e('0x0')]?_0x4168bc[_0x22db8e('0x0')][_0x22db8e('0xb')]||null:null,'limit':_0x4168bc[_0x22db8e('0x0')]?_0x4168bc[_0x22db8e('0x0')]['limit']||null:null})[_0x22db8e('0x8')](function(_0x561ccc){const _0x113869=_0x22db8e;logger['info'](_0x113869('0x5'),_0x4168bc),logger[_0x113869('0x6')]('UpdateFaxApplication',_0x4168bc,JSON['stringify'](_0x561ccc)),_0x17af8a(_0x561ccc);})[_0x22db8e('0x4')](function(_0x2128f0){const _0x2d0e44=_0x22db8e;logger[_0x2d0e44('0xc')](_0x2d0e44('0x5'),_0x2128f0['message'],_0x4168bc),_0xfd6a89(_0x1070fe[_0x2d0e44('0xc')](0x1f4,_0x2128f0[_0x2d0e44('0x3')]));});});};