Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / config / seedUsers.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xd7c3=['add\x20user','catch','util','../mysqldb','format','agent','%s%s','%s%s@xcally.com','udp','wss','all','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','\x22%s\x22\x20<%s>','then','log'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0xd7c3,0x68));var _0x3d7c=function(_0x2f30eb,_0xf134c6){_0x2f30eb=_0x2f30eb-0x0;var _0x522163=_0xd7c3[_0x2f30eb];return _0x522163;};'use strict';var util=require(_0x3d7c('0x0'));var db=require(_0x3d7c('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0x3d7c('0x2')]('%s%s',_0x3d7c('0x3'),i),'fullname':util[_0x3d7c('0x2')](_0x3d7c('0x4'),_0x3d7c('0x3'),i),'email':util[_0x3d7c('0x2')](_0x3d7c('0x5'),_0x3d7c('0x3'),i),'role':_0x3d7c('0x3'),'password':'password','internal':0xfa0+i,'type':'friend','transport':[_0x3d7c('0x6'),'ws',_0x3d7c('0x7')],'disallow':[_0x3d7c('0x8')],'allow':['ulaw'],'defaultuser':util[_0x3d7c('0x2')]('%s%s','agent',i),'encryption':_0x3d7c('0x9'),'avpf':_0x3d7c('0x9'),'force_avp':_0x3d7c('0x9'),'icesupport':_0x3d7c('0x9'),'dtlsenable':_0x3d7c('0x9'),'dtlsverify':'no','dtlscertfile':_0x3d7c('0xa'),'dtlsprivatekey':_0x3d7c('0xb'),'dtlssetup':'actpass','callerid':util['format'](_0x3d7c('0xc'),util[_0x3d7c('0x2')](_0x3d7c('0x4'),_0x3d7c('0x3'),i),0xfa0+i)});}db['User']['bulkCreate'](users)[_0x3d7c('0xd')](function(){console[_0x3d7c('0xe')](_0x3d7c('0xf'));})[_0x3d7c('0x10')](function(_0x1d5564){console[_0x3d7c('0xe')](_0x1d5564);});