Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
1 const a477_0x1ffb=['options','stringify','attributes','raw','UpdateOpenchannelApplication','../../config/logger','../../mysqldb','body','info','error','rpc','message','update','debug'];(function(_0x4b2f0c,_0x1ffb64){const _0x47ed05=function(_0x18cb18){while(--_0x18cb18){_0x4b2f0c['push'](_0x4b2f0c['shift']());}};_0x47ed05(++_0x1ffb64);}(a477_0x1ffb,0x121));const a477_0x47ed=function(_0x4b2f0c,_0x1ffb64){_0x4b2f0c=_0x4b2f0c-0x0;let _0x47ed05=a477_0x1ffb[_0x4b2f0c];return _0x47ed05;};const _0x5bc547=a477_0x47ed;'use strict';const db=require(_0x5bc547('0xb'))['db'],logger=require(_0x5bc547('0xa'))(_0x5bc547('0x1'));exports[_0x5bc547('0x9')]=function(_0x18cb18){const _0x585349=this;return new Promise(function(_0x3f64ec,_0x42c8ff){const _0x4b3204=a477_0x47ed;return db['OpenchannelApplication'][_0x4b3204('0x3')](_0x18cb18[_0x4b3204('0xc')],{'raw':_0x18cb18[_0x4b3204('0x5')]?_0x18cb18['options'][_0x4b3204('0x8')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x18cb18[_0x4b3204('0x5')]?_0x18cb18[_0x4b3204('0x5')]['where']||null:null,'attributes':_0x18cb18[_0x4b3204('0x5')]?_0x18cb18[_0x4b3204('0x5')][_0x4b3204('0x7')]||null:null,'limit':_0x18cb18['options']?_0x18cb18['options']['limit']||null:null})['then'](function(_0x5e7f74){const _0x58991d=_0x4b3204;logger[_0x58991d('0xd')](_0x58991d('0x9'),_0x18cb18),logger[_0x58991d('0x4')](_0x58991d('0x9'),_0x18cb18,JSON[_0x58991d('0x6')](_0x5e7f74)),_0x3f64ec(_0x5e7f74);})['catch'](function(_0x48a96d){const _0x567a06=_0x4b3204;logger[_0x567a06('0x0')](_0x567a06('0x9'),_0x48a96d['message'],_0x18cb18),_0x42c8ff(_0x585349[_0x567a06('0x0')](0x1f4,_0x48a96d[_0x567a06('0x2')]));});});};