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