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