Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / config / seedDB / contacts.js
1 const a858_0x59cf=['giuseppe.verdi@xcally.com','../logger','create','Verdi','Andrea','Rossi','error','bulkCreate','Mario','CmContact','contact\x20auto\x20generated','Bianco','info','andrea.bianco@xcally.com','./tags','Can\x27t\x20create\x20Contacts','then','Contacts\x20have\x20been\x20created','random','../../mysqldb','app','123','getNames'];(function(_0x16f20c,_0x59cfc8){const _0x449576=function(_0x2b69d6){while(--_0x2b69d6){_0x16f20c['push'](_0x16f20c['shift']());}};_0x449576(++_0x59cfc8);}(a858_0x59cf,0xa4));const a858_0x4495=function(_0x16f20c,_0x59cfc8){_0x16f20c=_0x16f20c-0x0;let _0x449576=a858_0x59cf[_0x16f20c];return _0x449576;};const _0x173db8=a858_0x4495;'use strict';const db=require(_0x173db8('0x10'))['db'],logger=require(_0x173db8('0x15'))(_0x173db8('0x11')),tags=require(_0x173db8('0xb'))[_0x173db8('0x13')](),getRandomTag=function(){const _0x2802f0=_0x173db8,_0x2b69d6=tags['length']-0x1;return[tags[Math['floor'](Math[_0x2802f0('0xf')]()*_0x2b69d6)+0x1]];},contacts=[{'id':0x1,'firstName':_0x173db8('0x5'),'lastName':_0x173db8('0x2'),'phone':_0x173db8('0x12'),'email':'mario.rossi@xcally.com','ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x173db8('0x7')},{'id':0x2,'firstName':'Giuseppe','lastName':_0x173db8('0x0'),'phone':'456','email':_0x173db8('0x14'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'},{'id':0x3,'firstName':_0x173db8('0x1'),'lastName':_0x173db8('0x8'),'phone':'789','email':_0x173db8('0xa'),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'}];exports[_0x173db8('0x16')]=function(){const _0x5ccc42=_0x173db8;return db[_0x5ccc42('0x6')][_0x5ccc42('0x4')](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5ccc42('0xd')](function(){const _0x2fcbb=_0x5ccc42;logger[_0x2fcbb('0x9')](_0x2fcbb('0xe'));})['catch'](function(){const _0x4ded4f=_0x5ccc42;logger[_0x4ded4f('0x3')](_0x4ded4f('0xc'));});};