Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / config / seedDB / squareOdbc.js
1 const a872_0xb887=['ODBC\x20have\x20been\x20created','bulkCreate','xcally\x20motion\x20db\x20auto\x20generated','../../mysqldb','app','error','create','xcally-motion-database','then','SquareOdbc'];(function(_0x18b152,_0xb88735){const _0x599877=function(_0xc28e7d){while(--_0xc28e7d){_0x18b152['push'](_0x18b152['shift']());}};_0x599877(++_0xb88735);}(a872_0xb887,0x1ab));const a872_0x5998=function(_0x18b152,_0xb88735){_0x18b152=_0x18b152-0x0;let _0x599877=a872_0xb887[_0x18b152];return _0x599877;};const _0x4a3d5c=a872_0x5998;'use strict';const db=require(_0x4a3d5c('0x6'))['db'],logger=require('../logger')(_0x4a3d5c('0x7')),odbc=[{'id':0x1,'name':_0x4a3d5c('0x0'),'dsn':'DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','description':_0x4a3d5c('0x5')}];exports[_0x4a3d5c('0x9')]=function(){const _0x12d4a1=_0x4a3d5c;return db[_0x12d4a1('0x2')][_0x12d4a1('0x4')](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x12d4a1('0x1')](function(){const _0x5a35e4=_0x12d4a1;logger['info'](_0x5a35e4('0x3'));})['catch'](function(){const _0x23e48a=_0x12d4a1;logger[_0x23e48a('0x8')]('Can\x27t\x20create\x20ODBC');});};