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