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