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