Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / api / squareRecording / squareRecording.rpc.js
index 5f90c8f..ac1d9d5 100644 (file)
@@ -1 +1 @@
-const a727_0x5b90=['../../config/logger','CreateSquareRecording','error','stringify','message','options','catch','raw'];(function(_0x3204ad,_0x479fd4){const _0x5b90e5=function(_0x44a045){while(--_0x44a045){_0x3204ad['push'](_0x3204ad['shift']());}};_0x5b90e5(++_0x479fd4);}(a727_0x5b90,0x1f1));const a727_0x44a0=function(_0x3204ad,_0x479fd4){_0x3204ad=_0x3204ad-0x104;let _0x5b90e5=a727_0x5b90[_0x3204ad];return _0x5b90e5;};const a727_0x2c5da5=a727_0x44a0;'use strict';const db=require('../../mysqldb')['db'],logger=require(a727_0x2c5da5(0x10b))('rpc');exports['CreateSquareRecording']=function(_0x4fabe7){const _0x4a81ce=this;return new Promise(function(_0xa4b0d,_0x2f2589){const _0x2b6663=a727_0x44a0;return db['SquareRecording']['create'](_0x4fabe7['body'],{'raw':_0x4fabe7['options']?_0x4fabe7[_0x2b6663(0x108)][_0x2b6663(0x10a)]===undefined?!![]:![]:!![]})['then'](function(_0x266fe4){const _0x165b53=_0x2b6663;logger['info']('CreateSquareRecording',_0x4fabe7),logger['debug']('CreateSquareRecording',_0x4fabe7,JSON[_0x165b53(0x106)](_0x266fe4)),_0xa4b0d(_0x266fe4);})[_0x2b6663(0x109)](function(_0x1f1442){const _0x277591=_0x2b6663;logger[_0x277591(0x105)](_0x277591(0x104),_0x1f1442['message'],_0x4fabe7),_0x2f2589(_0x4a81ce[_0x277591(0x105)](0x1f4,_0x1f1442[_0x277591(0x107)]));});});};
\ No newline at end of file
+const a727_0x1a73=['../../config/logger','body','raw','options','info','stringify','message','create','error','then','CreateSquareRecording'];(function(_0x109d23,_0x1e335c){const _0x1a7327=function(_0x54106e){while(--_0x54106e){_0x109d23['push'](_0x109d23['shift']());}};_0x1a7327(++_0x1e335c);}(a727_0x1a73,0x159));const a727_0x5410=function(_0x109d23,_0x1e335c){_0x109d23=_0x109d23-0x8a;let _0x1a7327=a727_0x1a73[_0x109d23];return _0x1a7327;};const a727_0x25582e=a727_0x5410;'use strict';const db=require('../../mysqldb')['db'],logger=require(a727_0x25582e(0x91))('rpc');exports[a727_0x25582e(0x90)]=function(_0x6cc084){const _0x143fb3=this;return new Promise(function(_0x4d52b6,_0x388ebb){const _0x2297c0=a727_0x5410;return db['SquareRecording'][_0x2297c0(0x8d)](_0x6cc084[_0x2297c0(0x92)],{'raw':_0x6cc084['options']?_0x6cc084[_0x2297c0(0x94)][_0x2297c0(0x93)]===undefined?!![]:![]:!![]})[_0x2297c0(0x8f)](function(_0x235be6){const _0x7b600e=_0x2297c0;logger[_0x7b600e(0x8a)](_0x7b600e(0x90),_0x6cc084),logger['debug'](_0x7b600e(0x90),_0x6cc084,JSON[_0x7b600e(0x8b)](_0x235be6)),_0x4d52b6(_0x235be6);})['catch'](function(_0x2c7d8d){const _0x4718d7=_0x2297c0;logger['error'](_0x4718d7(0x90),_0x2c7d8d[_0x4718d7(0x8c)],_0x6cc084),_0x388ebb(_0x143fb3[_0x4718d7(0x8e)](0x1f4,_0x2c7d8d[_0x4718d7(0x8c)]));});});};
\ No newline at end of file