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