Built motion from commit (unavailable).|2.2.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 _0x1403=['agent','friend','udp','wss','yes','/etc/pki/tls/certs/motion.crt','actpass','\x22%s\x22\x20<%s>','User','then','log','add\x20user','catch','util','../mysqldb','push','format','%s%s'];(function(_0x548577,_0x529b11){var _0x151967=function(_0x5bb68){while(--_0x5bb68){_0x548577['push'](_0x548577['shift']());}};_0x151967(++_0x529b11);}(_0x1403,0xf7));var _0x3140=function(_0x3fe3fe,_0x374793){_0x3fe3fe=_0x3fe3fe-0x0;var _0x5d6a73=_0x1403[_0x3fe3fe];return _0x5d6a73;};'use strict';var util=require(_0x3140('0x0'));var db=require(_0x3140('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x3140('0x2')]({'name':util[_0x3140('0x3')](_0x3140('0x4'),_0x3140('0x5'),i),'fullname':util['format'](_0x3140('0x4'),_0x3140('0x5'),i),'email':util['format']('%s%s@xcally.com',_0x3140('0x5'),i),'role':'agent','password':'password','internal':0xfa0+i,'type':_0x3140('0x6'),'transport':[_0x3140('0x7'),'ws',_0x3140('0x8')],'disallow':['all'],'allow':['ulaw'],'defaultuser':util[_0x3140('0x3')]('%s%s',_0x3140('0x5'),i),'encryption':'yes','avpf':_0x3140('0x9'),'force_avp':_0x3140('0x9'),'icesupport':_0x3140('0x9'),'dtlsenable':_0x3140('0x9'),'dtlsverify':'no','dtlscertfile':_0x3140('0xa'),'dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0x3140('0xb'),'callerid':util['format'](_0x3140('0xc'),util[_0x3140('0x3')](_0x3140('0x4'),_0x3140('0x5'),i),0xfa0+i)});}db[_0x3140('0xd')]['bulkCreate'](users)[_0x3140('0xe')](function(){console[_0x3140('0xf')](_0x3140('0x10'));})[_0x3140('0x11')](function(_0x22f3d3){console[_0x3140('0xf')](_0x22f3d3);});