d2c8a863bff721e836db404c79633edbd3fee6f6
[motion-next.git] / server / config / seedDB / pauses.js
1 const a867_0x2c87=['AFTERCALL','BACKOFFICE','bulkCreate','aftercall\x20pause\x20auto\x20generated','backoffice\x20pause\x20auto\x20generated','../logger','Pause','error'];(function(_0x250f74,_0x2c87f2){const _0x35119a=function(_0x578896){while(--_0x578896){_0x250f74['push'](_0x250f74['shift']());}};_0x35119a(++_0x2c87f2);}(a867_0x2c87,0xc8));const a867_0x3511=function(_0x250f74,_0x2c87f2){_0x250f74=_0x250f74-0x0;let _0x35119a=a867_0x2c87[_0x250f74];return _0x35119a;};const _0x3f6f29=a867_0x3511;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x3f6f29('0x5'))('app'),pauses=[{'id':0x1,'name':_0x3f6f29('0x1'),'description':_0x3f6f29('0x4')},{'id':0x2,'name':_0x3f6f29('0x0'),'description':_0x3f6f29('0x3')}];exports['create']=function(){const _0x349c03=_0x3f6f29;return db[_0x349c03('0x6')][_0x349c03('0x2')](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('Pauses\x20have\x20been\x20created');})['catch'](function(){const _0x40e5ad=_0x349c03;logger[_0x40e5ad('0x7')]('Can\x27t\x20create\x20Pauses');});};