Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / faxApplication / faxApplication.rpc.js
index c2721af..917b801 100644 (file)
@@ -1 +1 @@
-const a233_0x248c=['stringify','info','body','attributes','options','../../config/logger','where','FaxApplication','error','rpc','UpdateFaxApplication','then','debug','raw'];(function(_0x2bebaf,_0x1c9a55){const _0x248c94=function(_0x3f5fc1){while(--_0x3f5fc1){_0x2bebaf['push'](_0x2bebaf['shift']());}};_0x248c94(++_0x1c9a55);}(a233_0x248c,0xd5));const a233_0x3f5f=function(_0x2bebaf,_0x1c9a55){_0x2bebaf=_0x2bebaf-0x97;let _0x248c94=a233_0x248c[_0x2bebaf];return _0x248c94;};const a233_0x3ce5b2=a233_0x3f5f;'use strict';const db=require('../../mysqldb')['db'],logger=require(a233_0x3ce5b2(0x99))(a233_0x3ce5b2(0x9d));exports[a233_0x3ce5b2(0x9e)]=function(_0x339c0a){const _0x537a9b=this;return new Promise(function(_0x44995e,_0xcc685c){const _0x328d7d=a233_0x3f5f;return db[_0x328d7d(0x9b)]['update'](_0x339c0a[_0x328d7d(0xa4)],{'raw':_0x339c0a[_0x328d7d(0x98)]?_0x339c0a[_0x328d7d(0x98)][_0x328d7d(0xa1)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x339c0a[_0x328d7d(0x98)]?_0x339c0a[_0x328d7d(0x98)][_0x328d7d(0x9a)]||null:null,'attributes':_0x339c0a['options']?_0x339c0a[_0x328d7d(0x98)][_0x328d7d(0x97)]||null:null,'limit':_0x339c0a[_0x328d7d(0x98)]?_0x339c0a[_0x328d7d(0x98)]['limit']||null:null})[_0x328d7d(0x9f)](function(_0x5ede0a){const _0x5a3eb4=_0x328d7d;logger[_0x5a3eb4(0xa3)]('UpdateFaxApplication',_0x339c0a),logger[_0x5a3eb4(0xa0)](_0x5a3eb4(0x9e),_0x339c0a,JSON[_0x5a3eb4(0xa2)](_0x5ede0a)),_0x44995e(_0x5ede0a);})['catch'](function(_0x330d5b){const _0x4fe0f6=_0x328d7d;logger[_0x4fe0f6(0x9c)](_0x4fe0f6(0x9e),_0x330d5b['message'],_0x339c0a),_0xcc685c(_0x537a9b[_0x4fe0f6(0x9c)](0x1f4,_0x330d5b['message']));});});};
\ No newline at end of file
+const a233_0x16df=['options','raw','FaxApplication','body','stringify','message','where','error','UpdateFaxApplication','catch','rpc','then','../../mysqldb','../../config/logger','limit','attributes','update'];(function(_0x198931,_0x219500){const _0x16df26=function(_0x1cc601){while(--_0x1cc601){_0x198931['push'](_0x198931['shift']());}};_0x16df26(++_0x219500);}(a233_0x16df,0x18b));const a233_0x1cc6=function(_0x198931,_0x219500){_0x198931=_0x198931-0x1b9;let _0x16df26=a233_0x16df[_0x198931];return _0x16df26;};const a233_0x3b5874=a233_0x1cc6;'use strict';const db=require(a233_0x3b5874(0x1c1))['db'],logger=require(a233_0x3b5874(0x1c2))(a233_0x3b5874(0x1bf));exports[a233_0x3b5874(0x1bd)]=function(_0x535e4e){const _0x21b7e8=this;return new Promise(function(_0x4b71cc,_0x4ce3a8){const _0x48f1da=a233_0x1cc6;return db[_0x48f1da(0x1c8)][_0x48f1da(0x1c5)](_0x535e4e[_0x48f1da(0x1c9)],{'raw':_0x535e4e[_0x48f1da(0x1c6)]?_0x535e4e[_0x48f1da(0x1c6)][_0x48f1da(0x1c7)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x535e4e[_0x48f1da(0x1c6)]?_0x535e4e['options'][_0x48f1da(0x1bb)]||null:null,'attributes':_0x535e4e[_0x48f1da(0x1c6)]?_0x535e4e[_0x48f1da(0x1c6)][_0x48f1da(0x1c4)]||null:null,'limit':_0x535e4e['options']?_0x535e4e[_0x48f1da(0x1c6)][_0x48f1da(0x1c3)]||null:null})[_0x48f1da(0x1c0)](function(_0x50faef){const _0x5c503a=_0x48f1da;logger['info'](_0x5c503a(0x1bd),_0x535e4e),logger['debug'](_0x5c503a(0x1bd),_0x535e4e,JSON[_0x5c503a(0x1b9)](_0x50faef)),_0x4b71cc(_0x50faef);})[_0x48f1da(0x1be)](function(_0x77736b){const _0x316593=_0x48f1da;logger[_0x316593(0x1bc)](_0x316593(0x1bd),_0x77736b['message'],_0x535e4e),_0x4ce3a8(_0x21b7e8[_0x316593(0x1bc)](0x1f4,_0x77736b[_0x316593(0x1ba)]));});});};
\ No newline at end of file