forked from grmlin/meteor-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.json
86 lines (86 loc) · 55.1 KB
/
test.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"version": 3,
"file": "/packages/users.js",
"sources": [
"users/locale/en.js",
"users/locale/ru.js",
"users/locale/de.js",
"users/namespace.js",
"users/User.ts",
"users/ProfileDb.ts",
"users/Profile.ts",
"users/utils.ts",
"users/client.ts"
],
"names": [
"Users",
"Users.User",
"Users.User.constructor",
"Users.User.checkUsernameAvailability",
"Users.User.checkEmailAvailability",
"Users.User.loginWithPassword",
"Users.User.forgotPassword",
"Users.User.setPassword",
"Users.User.sendResetPasswordEmail",
"Users.User.sendEnrollmentEmail",
"Users.User.active",
"Users.User.create",
"Users.ProfileDb",
"Users.ProfileDb.constructor",
"Users.Role",
"Users.Scope",
"Users.VipStatus",
"Users.Profile",
"Users.Profile.constructor",
"Users.Profile.publish",
"Users.Profile.active",
"Users.Profile.system",
"Users.Profile.create",
"Users.Profile.hasAccess",
"Users.Profile.getAccess",
"Users.Profile.accessSelector",
"Users.Profile.hasGlobalAccess",
"Users.Profile.connectFrontend",
"Users.Profile.createToken",
"Users.Profile.checkPassword",
"Users.Profile.gravatarUrl",
"Users.Profile.fullName",
"Users.Profile.displayName",
"Users.Profile.getNormalizedFirstName",
"Users.Profile.getNormalizedLastName",
"Users.Profile.isMe",
"Users.Profile.go",
"Users.Profile.href",
"Users.Profile.generateOtpSecret",
"Users.Profile.enableOtp",
"Users.Profile.disableOtp",
"Users.Profile.isGlobal",
"Users.Profile.isSite",
"Users.Profile.isAffiliate",
"Users.Profile.badge",
"Users.Profile.vipStatus",
"Users.Access",
"Users.Access.constructor",
"Users.Access.roleName",
"Users.Access.roleIcon",
"Users.Access.scopeName",
"Users.Access.scopeIcon",
"Users.Access.subjectName",
"Users.isGlobal",
"Users.isSite",
"Users.isAffiliate",
"Users.getActiveUser"
],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gB;AACA,S;AACA,c;AACA,qB;AACA,I;AACA,e;AACA,qB;AACA,I;AACA,+C;AACA,a;AACA,oB;AACA,I;AACA,a;AACA,oB;AACA,kG;AACA,8C;AACA,I;AACA,U;AACA,kB;AACA,+C;AACA,oD;AACA,I;AACA,gB;AACA,wB;AACA,iF;AACA,I;AACA,S;AACA,gB;AACA,gF;AACA,I;AACA,a;AACA,oB;AACA,iF;AACA,I;AACA,mB;AACA,2B;AACA,qD;AACA,I;AACA,mB;AACA,2B;AACA,6F;AACA,I;AACA,gB;AACA,wB;AACA,I;AACA,a;AACA,oB;AACA,0B;AACA,I;AACA,Y;AACA,kB;AACA,I;AACA,Q;AACA,0B;AACA,I;AACA,Y;AACA,kB;AACA,I;AACA,a;AACA,mB;AACA,G;AACA,G;AACA,Y;AACA,qC;AACA,0C;AACA,kC;AACA,iB;AACA,yC;AACA,sE;AACA,sC;AACA,mD;AACA,E;AACA,G;;;;;;;;;;;;;;;;;;ACxEA,gB;AACA,S;AACA,c;AACA,c;AACA,I;AACA,e;AACA,qB;AACA,I;AACA,qD;AACA,a;AACA,kB;AACA,I;AACA,a;AACA,mB;AACA,oH;AACA,mD;AACA,I;AACA,U;AACA,kB;AACA,oD;AACA,qD;AACA,I;AACA,gB;AACA,0B;AACA,sF;AACA,I;AACA,S;AACA,iB;AACA,+F;AACA,I;AACA,a;AACA,kB;AACA,8E;AACA,I;AACA,mB;AACA,4B;AACA,8E;AACA,I;AACA,mB;AACA,2B;AACA,gG;AACA,I;AACA,gB;AACA,wB;AACA,I;AACA,a;AACA,mB;AACA,+B;AACA,I;AACA,Y;AACA,gB;AACA,I;AACA,Q;AACA,0B;AACA,I;AACA,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BA,EAAEA,QAAgBA,EAAEA,QAAwBA;MACV;IACpF,CAAC,CAACA;IAEFA,UAAIA,CAACA,cAAcA,GAAGA,UAASA,KAAaA,EAAEA,QAAwBA;MAChB;IACtD,CAAC,CAACA;IAKFA,eAFeA;IAEfA,MAAMA,CAACA,OAAOA,CAACA;QAEd,IAAI,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAkB;QAGlD,iBADiC;QACjC,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;YAChB,IAAI,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACzC,MAAM,CAAC,OAAwC;gBAC9C,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBACT,OAAiB;iBACV;gBACR,CAAC;eACmB;SAClB;QACJ,CAAC;QAED,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;SAC8B;OACxD;IACF,CAAC,CAACA,CAACA;A",
"sourcesContent": [
"i18n.map('en', {\n\tusers: {\n\t\tfirstName: {\n\t\t\tname: 'First name'\n\t\t},\n\t\tgoogleAuth: {\n\t\t\tname: 'Google OTP'\n\t\t},\n\t\tiUseGoogleAuth: 'I use Google Authenticator',\n\t\tlastName: {\n\t\t\tname: 'Last name'\n\t\t},\n\t\tusername: {\n\t\t\tname: 'Username',\n\t\t\tformatError: 'Username must be 3-11 characters and can contain letters, numbers and $ _ + * -',\n\t\t\texistsError: 'This username already exists'\n\t\t},\n\t\temail: {\n\t\t\tname: 'E-mail',\n\t\t\tformatError: 'Invalid email address format',\n\t\t\texistsError: 'This email address is already used'\n\t\t},\n\t\tphoneNumber: {\n\t\t\tname: 'Phone number',\n\t\t\tformatError: 'Phone number must be 6-20 characters containing numbers and + -'\n\t\t},\n\t\ttown: {\n\t\t\tname: 'Town',\n\t\t\tformatError: 'Town must be 2-30 characters containing numbers and _ \\' + . -'\n\t\t},\n\t\tpassword: {\n\t\t\tname: 'Password',\n\t\t\tformatError: 'Password must be 8-20 characters containing letters and numbers'\n\t\t},\n\t\trepeatPassword: {\n\t\t\tname: 'Repeat password',\n\t\t\tformatError: 'Repeat password must match Password'\n\t\t},\n\t\tsecurityAnswer: {\n\t\t\tname: 'Security answer',\n\t\t\tformatError: 'Secury answer must be 5-50 characters containing letters, numbers and space'\n\t\t},\n\t\tdateOfBirth: {\n\t\t\tname: 'Date of birth'\n\t\t},\n\t\treferral: {\n\t\t\tname: 'Referral',\n\t\t\tplaceHolder: 'Optional'\n\t\t},\n\t\taddress: {\n\t\t\tname: 'Address'\n\t\t},\n\t\tzip: {\n\t\t\tname: 'Zip/Postal code'\n\t\t},\n\t\tcountry: {\n\t\t\tname: 'Country'\n\t\t},\n\t\twebsites: {\n\t\t\tname: 'Websites'\n\t\t}\n\t},\n\tforgotPw: {\n\t\tforgotPassword: 'Forgot Password?',\n\t\tenterEmail: 'Enter your e-mail address',\n\t\tresetPassword: 'Reset Password',\n\t\terror: 'ERROR',\n\t\tenterNewPassword: 'Enter new password',\n\t\tnewPasswordSent: 'We have sent you a token to reset your password.',\n\t\tcheckYourEmail: 'Check your e-mail',\n\t\tchooseYourNewPassword: 'Choose your new password'\n\t}\n});",
"i18n.map('ru', {\n\tusers: {\n\t\tfirstName: {\n\t\t\tname: 'Имя'\n\t\t},\n\t\tgoogleAuth: {\n\t\t\tname: 'Google OTP'\n\t\t},\n\t\tiUseGoogleAuth: 'Я использую Google Authenticator',\n\t\tlastName: {\n\t\t\tname: 'Фамилия'\n\t\t},\n\t\tusername: {\n\t\t\tname: 'Никнейм',\n\t\t\tformatError: 'Имя пользователя должно иметь 3-11 символов и содержать в себе буквы, цифры или символы $ _ + * -',\n\t\t\texistsError: 'Такое имя пользователя уже занято'\n\t\t},\n\t\temail: {\n\t\t\tname: 'И-мейл',\n\t\t\tformatError: 'Неправильный формат и-мейл адреса',\n\t\t\texistsError: 'Такой и-мейл адрес уже используется'\n\t\t},\n\t\tphoneNumber: {\n\t\t\tname: 'Номер телефона',\n\t\t\tformatError: 'Номер телефона должен содержать от 6 до 20 цифр, включая символы + -'\n\t\t},\n\t\ttown: {\n\t\t\tname: 'Город',\n\t\t\tformatError: 'Город должен иметь 2-30 символов и может содержать цифры и символы _ \\' + . -'\n\t\t},\n\t\tpassword: {\n\t\t\tname: 'Пароль',\n\t\t\tformatError: 'Пароль должен содержать 8-20 символов, включая буквы и цифры'\n\t\t},\n\t\trepeatPassword: {\n\t\t\tname: 'Повторить пароль',\n\t\t\tformatError: 'Повторный пароль должен быть таким же, как и основной пароль'\n\t\t},\n\t\tsecurityAnswer: {\n\t\t\tname: 'Секретный ответ',\n\t\t\tformatError: 'Секретный ответ должен содержать 5-50 символов, включая буквы, цифры и пробелы'\n\t\t},\n\t\tdateOfBirth: {\n\t\t\tname: 'Дата Рождения'\n\t\t},\n\t\treferral: {\n\t\t\tname: 'Реферал',\n\t\t\tplaceHolder: 'Необязательно'\n\t\t},\n\t\taddress: {\n\t\t\tname: 'Адрес'\n\t\t},\n\t\tzip: {\n\t\t\tname: 'Почтовый индекс'\n\t\t},\n\t\tcountry: {\n\t\t\tname: 'Страна'\n\t\t},\n\t\twebsites: {\n\t\t\tname: 'Сайты'\n\t\t}\n\t},\n\tforgotPw: {\n\t\tforgotPassword: 'Забыли пароль?',\n\t\tenterEmail: 'Введите свой и-мейл',\n\t\tresetPassword: 'Обновить Пароль',\n\t\terror: 'ОШИБКА',\n\t\tenterNewPassword: 'Введите новый пароль',\n\t\tnewPasswordSent: 'Мы отправили вам письмо с информацией о смене пароля',\n\t\tcheckYourEmail: 'Проверьте свой и-мейл',\n\t\tchooseYourNewPassword: 'Выберите новый пароль'\n\t}\n});",
"i18n.map('de', {\n\tusers: {\n\t\tfirstName: {\n\t\t\tname: 'Vorname'\n\t\t},\n\t\tgoogleAuth: {\n\t\t\tname: 'Google OTP'\n\t\t},\n\t\tiUseGoogleAuth: 'Ich verwende Google Authenticator',\n\t\tlastName: {\n\t\t\tname: 'Nachname'\n\t\t},\n\t\tusername: {\n\t\t\tname: 'Benutzername',\n\t\t\tformatError: 'Der Benutzername muss 3-11 Zeichen lang sein und kann Buchstaben, Zahlen und Sonderzeichen wie $ _ + * - beinhalten',\n\t\t\texistsError: 'Dieser Benutzername existiert bereits'\n\t\t},\n\t\temail: {\n\t\t\tname: 'E-Mail',\n\t\t\tformatError: 'Ungültiges Format E-Mail Adresse',\n\t\t\texistsError: 'Diese E-Mail Adresse wird bereits verwendet.'\n\t\t},\n\t\tphoneNumber: {\n\t\t\tname: 'Telefonnummer',\n\t\t\tformatError: 'Die Telefonnummer muss 7-20 Zeichen lang sein und Nummern sowie + beinhalten -'\n\t\t},\n\t\ttown: {\n\t\t\tname: 'Stadt',\n\t\t\tformatError: 'Die Stadt muss zwischen 2-30 Zeichen lang sein und Nummern sowie _ \\' + . - beinhalten'\n\t\t},\n\t\tpassword: {\n\t\t\tname: 'Passwort',\n\t\t\tformatError: 'Das Passwort muss 8-20 Zeichen lang sein und Buchstaben sowie Nummern enthalten'\n\t\t},\n\t\trepeatPassword: {\n\t\t\tname: 'Passwort wiederholen',\n\t\t\tformatError: 'Wiederholtes Passwort muss mit dem Passwort übereinstimmen'\n\t\t},\n\t\tsecurityAnswer: {\n\t\t\tname: 'Sicherheitsantwort',\n\t\t\tformatError: 'Die Sicherheitsantwort muss 5-50 Zeichen lang sein und Buchstaben, Nummern und Platz beinhalten '\n\t\t},\n\t\tdateOfBirth: {\n\t\t\tname: 'Geburtsdatum'\n\t\t},\n\t\treferral: {\n\t\t\tname: 'Referral',\n\t\t\tplaceHolder: 'Optional'\n\t\t},\n\t\taddress: {\n\t\t\tname: 'Adresse'\n\t\t},\n\t\tzip: {\n\t\t\tname: 'Postleitzahl'\n\t\t},\n\t\tcountry: {\n\t\t\tname: 'Land'\n\t\t},\n\t\twebsites: {\n\t\t\tname: 'Webseiten'\n\t\t}\n\t},\n\tforgotPw: {\n\t\tforgotPassword: 'Passwort vergessen?',\n\t\tenterEmail: 'Geben Sie Ihre E-Mail Adresse ein',\n\t\tresetPassword: 'Password zurücksetzen',\n\t\terror: 'FEHLER',\n\t\tenterNewPassword: 'Neues Passwort eingeben',\n\t\tnewPasswordSent: 'We have sent you a token to reset your password.',\n\t\tcheckYourEmail: 'Prüfen Sie Ihre E-Mails',\n\t\tchooseYourNewPassword: 'Wählen Sie Ihr neues Passwort'\n\t}\n});",
"Users = {};",
"/// <reference path=\".server.d.ts\" />\n/// <reference path=\".client.d.ts\" />\n\nmodule Users {\n\n\texport class User extends BaseCollection<User> {\n\n\t\tstatic db = new DataCollection<Users.User>({\n\t\t\tsource: User,\n\t\t\tname: 'Users.User',\n\t\t\tconnection: <any>Meteor,\n\t\t\trelations: {\n\t\t\t\tid: {\n\t\t\t\t\tindex: {\n\t\t\t\t\t\tunique: true,\n\t\t\t\t\t\tsparse: true\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tprofile: {\n\t\t\t\t\ttarget: 'Users.Profile'\n\t\t\t\t}\n\t\t\t},\n\t\t\tallow: {\n\t\t\t\tinsert: (userId: string, doc: Object): boolean => {\n\t\t\t\t\treturn true;\n\t\t\t\t},\n\t\t\t\tupdate: (userId: string, doc: Object, fieldNames: string[], modifier): boolean => {\n\t\t\t\t\treturn true;\n\t\t\t\t},\n\t\t\t\tremove: (userId: string, doc: Object): boolean => {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeny: {}\n\t\t});\n\n\t\tpublic username: string;\n\t\tpublic emails: { address: string }[];\n\t\tpublic profile: OneRelation<Profile>;\n\t\tpublic services: any;\n\n\t\t/**\n\t\t * Checks weather the username is available or not.\n\t\t *\n\t\t * @param username Username to check\n\t\t */\n\t\tstatic checkUsernameAvailability(username: string, site?: string, callback?: (result: boolean) => void): boolean {\n\t\t\treturn false;\n\t\t}\n\n\t\t/**\n\t\t * Checks weather the emails is available or not.\n\t\t *\n\t\t * @param email Emailto check\n\t\t */\n\t\tstatic checkEmailAvailability(email: string, site?: string, callback?: (result: boolean) => void): boolean {\n\t\t\treturn false;\n\t\t}\n\n\t\t/**\n\t\t * Log the user in with a password.\n\t\t *\n\t\t * @param user Either a string interpreted as a username or an email;\n\t\t * or an object with a single key: email, username or id.\n\t\t * @param password Either a string interpreted as a username or an email;\n\t\t * or an object with a single key: email, username or id.\n\t\t * @param callback Optional callback. Called with no arguments on success,\n\t\t * or with a single Error argument on failure.\n\t\t */\n\t\tstatic loginWithPassword(username: string, password: string, callback: (err?) => void) {}\n\n\t\t/**\n\t\t * Request a forgot password email.\n\t\t *\n\t\t * @param email The email address to send a password reset link.\n\t\t * @param callback Optional callback. Called with no arguments on success, or with a single Error argument on failure.\n\t\t */\n\t\tstatic forgotPassword(email: string, callback: (error?) => void) { }\n\n\t\t/**\n\t\t * Server only. Forcibly change the password for a user.\n\t\t *\n\t\t * @param newPassword A new password for the user.\n\t\t */\n\t\tsetPassword(newPassword: string) { }\n\n\t\t/**\n\t\t * Server only. Send an email with a link the user can use to reset their password.\n\t\t *\n\t\t * The token in this email should be passed to Accounts.resetPassword.\n\t\t * To customize the contents of the email, see Accounts.emailTemplates.\n\t\t *\n\t\t * @param email Optional. Which address of the user's to send the email to.\n\t\t * This address must be in the user's emails list. Defaults to the first email in the list.\n\t\t */\n\t\tsendResetPasswordEmail(email: string) { }\n\n\t\t/**\n\t\t * Server only. Send an email with a link the user can use to set their initial password.\n\t\t *\n\t\t * The token in this email should be passed to Accounts.resetPassword.\n\t\t * To customize the contents of the email, see Accounts.emailTemplates.\n\t\t *\n\t\t * @param email Optional. Which address of the user's to send the email to.\n\t\t * This address must be in the user's emails list. Defaults to the first email in the list.\n\t\t */\n\t\tsendEnrollmentEmail(email: string) { }\n\n\t\tstatic active(): User {\n\t\t\tif (!Meteor.userId()) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\treturn this.db.findOne(Meteor.userId());\n\t\t}\n\n\t\tstatic create(userData: any, callback?: (err?) => void) {\n\t\t\t// server side\n\t\t}\n\n\n\n\t}\n\n}\n",
"/// <reference path=\".server.d.ts\" />\n/// <reference path=\".client.d.ts\" />\n\nmodule Users {\n\texport class ProfileDb extends DataCollection<Profile> {\n\n\t\tconstructor(model) {\n\t\t\tsuper({\n\t\t\t\tsource: model,\n\t\t\t\tname: 'Users.Profile',\n\t\t\t\tconnection: Backend.Server,\n\t\t\t\tpickerOptions: {\n\t\t\t\t\tplaceholder: 'User',\n\t\t\t\t\ticon: 'user',\n\t\t\t\t\tfields: ['username'],\n\t\t\t\t\tlabel: function(user: Profile){\n\t\t\t\t\t\tvar site = user.site.fetch();\n\t\t\t\t\t\tif (site) {\n\t\t\t\t\t\t\treturn user.username + '<small class=\"text-muted pull-right\">' + site.name + '</small>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn user.username;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tfields: {\n\t\t\t\t\tsignupTime: {\n\t\t\t\t\t\ttype: FieldType.DATE\n\t\t\t\t\t},\n\t\t\t\t\tdateOfBirth: {\n\t\t\t\t\t\ttype: FieldType.DATE\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\trelations: {\n\t\t\t\t\tsite: {\n\t\t\t\t\t\ttarget: 'Backend.Site'\n\t\t\t\t\t},\n\t\t\t\t\tuserId: {\n\t\t\t\t\t\tindex: {\n\t\t\t\t\t\t\tunique: true,\n\t\t\t\t\t\t\tsparse: true\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\twallets: {\n\t\t\t\t\t\ttarget: 'Banking.Wallet',\n\t\t\t\t\t\tlinkedBy: 'user',\n\t\t\t\t\t\tmany: true\n\t\t\t\t\t},\n\t\t\t\t\ttracker: {\n\t\t\t\t\t\ttarget: 'Affiliates.Tracker'\n\t\t\t\t\t},\n\t\t\t\t\taffiliate: {\n\t\t\t\t\t\ttarget: 'Affiliates.Affiliate'\n\t\t\t\t\t},\n\t\t\t\t\troles: {\n\t\t\t\t\t\ttarget: 'Users.Access',\n\t\t\t\t\t\tmany: true\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tallow: {\n\t\t\t\t\tinsert: (userId: string, doc: Object): boolean => {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t},\n\t\t\t\t\tupdate: (userId: string, doc: any, fieldNames: string[], modifier): boolean => {\n\t\t\t\t\t\tif (fieldNames.indexOf('password') !== -1) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!userId) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar user = Profile.db.findOne({userId: userId});\n\t\t\t\t\t\tvar globalAccess = user.hasAccess([Scope.GLOBAL, Scope.SITE], [Role.ADMIN]);\n\n\t\t\t\t\t\t// cant change my own rights unless i'm global admin\n\t\t\t\t\t\tif (!globalAccess && fieldNames.indexOf('roles') !== -1) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn (doc._id == user._id) || globalAccess;\n\t\t\t\t\t},\n\t\t\t\t\tremove: (userId: string, doc: Object): boolean => {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tdeny: {},\n\t\t\t\tvalidation: {\n\t\t\t\t\tfirstName: {\n\t\t\t\t\t\tdisplayName: 'First name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tpattern: /^[a-zA-Z]+$/,\n\t\t\t\t\t\t\terrorMessage: 'users.firstName.formatError'\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\tlastName: {\n\t\t\t\t\t\tdisplayName: 'Last name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tpattern: /^[a-zA-Z]+$/,\n\t\t\t\t\t\t\terrorMessage: 'users.lastName.formatError'\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\tusername: {\n\t\t\t\t\t\tdisplayName: 'Username',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^[A-Za-z0-9$_+*-]{3,11}$/,\n\t\t\t\t\t\t\t\terrorMessage: 'users.username.formatError'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcallback: function(value, data, callback) {\n\t\t\t\t\t\t\t\t\tif (Meteor.isServer) {\n\t\t\t\t\t\t\t\t\t\tcallback(null, User.checkUsernameAvailability(value, data.site.handle));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tMeteor.call('checkUsernameAvailability', value, data.site ? data.site.handle : null, callback);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\terrorMessage: 'users.username.existsError'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t},\n\t\t\t\t\temail: {\n\t\t\t\t\t\tdisplayName: 'users.email.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^\\S+@\\S+\\.\\S+$/\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcallback: function(value, data, callback) {\n\t\t\t\t\t\t\t\t\tif (Meteor.isServer) {\n\t\t\t\t\t\t\t\t\t\tcallback(null, User.checkEmailAvailability(value, data.site.handle));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tMeteor.call('checkEmailAvailability', value, data.site ? data.site.handle : null, callback);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\terrorMessage: 'users.email.existsError'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t},\n\t\t\t\t\tphoneNumber: {\n\t\t\t\t\t\tdisplayName: 'users.phoneNumber.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tpattern: /^[0-9+-]{6,20}$/,\n\t\t\t\t\t\t\terrorMessage: 'users.phoneNumber.formatError'\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\ttown: {\n\t\t\t\t\t\tdisplayName: 'users.town.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tpattern: /^[a-zA-Z0-9_'+. -]{2,30}$/,\n\t\t\t\t\t\t\terrorMessage: 'users.town.formatError'\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\tpassword: {\n\t\t\t\t\t\tdisplayName: 'users.password.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tpattern: /^[A-Za-z0-9]{8,20}$/,\n\t\t\t\t\t\t\terrorMessage: 'users.password.formatError'\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\trepeatPassword: {\n\t\t\t\t\t\tdisplayName: 'users.repeatPassword.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tconditional: function (value, data) {\n\t\t\t\t\t\t\t\treturn value === data.password;\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terrorMessage: 'users.repeatPassword.formatError'\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\tsecurityAnswer: {\n\t\t\t\t\t\tdisplayName: 'users.securityAnswer.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tpattern: /^[a-zA-Z0-9 ]{2,50}$/,\n\t\t\t\t\t\t\terrorMessage: 'users.securityAnswer.formatError'\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\tdateOfBirth: {\n\t\t\t\t\t\tdisplayName: 'users.dateOfBirth.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tconditional: (value): boolean => {\n\t\t\t\t\t\t\t\tvar date = moment(value);\n\t\t\t\t\t\t\t\tif (!date) return false;\n\t\t\t\t\t\t\t\tvar age = -date.diff(moment(), 'years');\n\t\t\t\t\t\t\t\treturn 18 <= age && age <= 100;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\taddress: {\n\t\t\t\t\t\tdisplayName: 'users.address.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^[a-zA-Z0-9_'+. -]{2,50}$/\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tconditional: (value): boolean => {\n\t\t\t\t\t\t\t\t\tvar country = User.active().profile.fetch().country.fetch().name;\n//\t\t\t\t\t\t\t\t\tvar country = User.active().profile.fetch().country.fetch().name;\n\t\t\t\t\t\t\t\t\treturn !(country === 'United Kingdom' && !/ [0-9]/.test(value));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t},\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tdisplayName: 'users.zip.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^[a-zA-Z0-9_'+. -]{2,50}$/\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tconditional: (value): boolean => {\n\t\t\t\t\t\t\t\t\tvar country = Users.Profile.active().country.fetch().name;\n\t\t\t\t\t\t\t\t\tif (country === 'United Kingdom' && !/^[0-9a-zA-Z]{5,}$/.test(value))\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\telse if ((country === 'Canada' || country === 'Netherlands') && !/^[0-9a-zA-Z]{2,}$/.test(value))\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\treturn /^[0-9]{2,}$/.test(value);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t},\n\t\t\t\t\tcountry: {\n\t\t\t\t\t\tdisplayName: 'users.country.name',\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\tconditional: (value): boolean => {\n\t\t\t\t\t\t\t\tvar countries = Countries.Country.db.find().fetch();\n\t\t\t\t\t\t\t\tvar found = false;\n\t\t\t\t\t\t\t\tfor (var i in countries) {\n\t\t\t\t\t\t\t\t\tvar country = countries[i];\n\t\t\t\t\t\t\t\t\tif (value === country.name) {\n\t\t\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn found;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t}\n}",
"/// <reference path=\".server.d.ts\" />\n/// <reference path=\".client.d.ts\" />\n\nmodule Users {\n\n\texport enum Role {\n\t\tADMIN,\n\t\tSUPPORT\n\t}\n\n\texport enum Scope {\n\t\tGLOBAL,\n\t\tSITE,\n\t\tAFFILIATE\n\t}\n\n\texport enum VipStatus {\n\t\tNOTVIP,\n\t\tACTIVE,\n\t\tINACTIVE\n\t}\n\n\texport var scopes = [];\n\tfor (var i in Scope) {\n\t\tvar name = Scope[i];\n\t\tif (typeof name == 'number') {\n\t\t\tcontinue;\n\t\t}\n\t\tname = name.charAt(0) + name.substr(1).toLowerCase();\n\t\tvar icon: string;\n\t\tif (i == Scope.GLOBAL) {\n\t\t\ticon = 'fa fa-globe';\n\t\t}\n\t\telse if (i == Scope.SITE) {\n\t\t\ticon = 'fa fa-briefcase';\n\t\t}\n\t\telse if (i== Scope.AFFILIATE) {\n\t\t\ticon = 'fa fa-users';\n\t\t}\n\t\tscopes.push({\n\t\t\tid: +i,\n\t\t\tname: name,\n\t\t\ticon: icon\n\t\t});\n\t}\n\n\texport var roles = [];\n\tfor (var i in Role) {\n\t\tvar name = Role[i];\n\t\tif (typeof name == 'number') {\n\t\t\tcontinue;\n\t\t}\n\t\tname = name.charAt(0) + name.substr(1).toLowerCase();\n\t\tvar icon: string;\n\t\tif (i == Role.ADMIN) {\n\t\t\ticon = 'fa fa-gavel';\n\t\t}\n\t\telse if (i == Role.SUPPORT) {\n\t\t\ticon = 'fa fa-comment-o';\n\t\t}\n\t\troles.push({\n\t\t\tid: +i,\n\t\t\tname: name,\n\t\t\ticon: icon\n\t\t});\n\t}\n\n\n\n\texport class Profile extends BaseCollection<Profile> {\n\t\tstatic _forms;\n\t\tstatic db = new ProfileDb(Profile);\n\t\tstatic publish() { }\n\n\t\tpublic id: number;\n\t\tpublic userId: string;\n\t\tpublic username: string;\n\t\tpublic email: string;\n\t\tpublic firstName: string;\n\t\tpublic lastName: string;\n\t\tpublic country: OneRelation<Countries.Country>;\n\t\tpublic tracker: OneRelation<Affiliates.Tracker>;\n\t\tpublic affiliate: OneRelation<Affiliates.Affiliate>;\n\t\tpublic isAdmin: boolean;\n\t\tpublic isVip: VipStatus;\n\t\tpublic site: OneRelation<Backend.Site>;\n\t\tpublic siteAdmin: string;\n\t\tpublic phone: string;\n\t\tpublic city: string;\n\t\tpublic zip: string;\n\t\tpublic address: string;\n\t\tpublic password: any;\n\t\tpublic signupTime: Date;\n\t\tpublic dateOfBirth: Date;\n\t\tpublic refCode: string;\n\t\tpublic refPage: string;\n\t\tpublic wallets: ManyRelation<Banking.Wallet>;\n\t\tpublic roles: Access[];\n\t\tpublic otpEnabled: boolean;\n\t\tpublic playerGuideSeen: boolean;\n\t\tpublic disabled: boolean;\n\t\tpublic empId: string;\n\t\tpublic websites: string;\n\t\tpublic lastCountryCode: string;\n\t\tpublic elecUsername: string;\n\n\t\tstatic active(): Profile {\n\t\t\treturn User.active() ? this.db.findOne(User.active().profile) : undefined;\n\t\t}\n\n\t\tstatic system(): Profile {\n\t\t\treturn this.db.findOne({_id: '6uasKZiWDMDmiJaco'});\n\t\t}\n\n\t\tstatic create(userData: any, callback?: (err?, user?: Users.Profile) => void) {\n\t\t\t// server side\n\t\t}\n\n\t\thasAccess(scopes: Scope[], roles: Role[], subject?: any): boolean {\n\t\t\tif (!this.roles || roles.length == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tvar found = false;\n\t\t\tif (typeof subject === 'object') {\n\t\t\t\tsubject = subject._id || subject.id;\n\t\t\t}\n\t\t\tthis.roles.forEach(function(item){\n\t\t\t\tif (roles.indexOf(item.role) !== -1 && scopes.indexOf(item.scope) !== -1 && (!subject || item.subject == subject)) {\n\t\t\t\t\tfound = true;\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn found;\n\t\t}\n\n\t\tgetAccess(scopes: Scope[], roles: Role[], subject?: any): Access[] {\n\t\t\tif (!this.roles || roles.length == 0) {\n\t\t\t\treturn [];\n\t\t\t}\n\t\t\tvar found: Access[] = [];\n\t\t\tif (typeof subject === 'object') {\n\t\t\t\tsubject = subject._id || subject.id;\n\t\t\t}\n\t\t\tthis.roles.forEach(function(item){\n\t\t\t\tif (roles.indexOf(item.role) !== -1 && scopes.indexOf(item.scope) !== -1 && (!subject || item.subject == subject)) {\n\t\t\t\t\tfound.push(item);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn found;\n\t\t}\n\n\t\taccessSelector(selector: any, siteField: string = 'site', affiliateField: string = 'affiliate') {\n\t\t\tif (this.hasAccess([Scope.GLOBAL], [Role.ADMIN, Role.SUPPORT])) {\n\t\t\t\treturn selector;\n\t\t\t}\n\t\t\tvar sites: string[] = [];\n\t\t\tvar affiliates: string[] = [];\n\n\t\t\tif (siteField !== null) {\n\t\t\t\tsites = this.getAccess([Scope.SITE], [Role.ADMIN, Role.SUPPORT]).map(function (access) {\n\t\t\t\t\treturn access.subject;\n\t\t\t\t});\n\t\t\t\tif (siteField === '_id') {\n\t\t\t\t\tsites = sites.concat(this.getAccess([Scope.AFFILIATE], [Role.ADMIN, Role.SUPPORT]).map(function (access) {\n\t\t\t\t\t\treturn Affiliates.Affiliate.db.findOne(access.subject).site.id;\n\t\t\t\t\t}));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (affiliateField !== null || siteField === '_id') {\n\t\t\t\taffiliates = this.getAccess([Scope.AFFILIATE], [Role.ADMIN, Role.SUPPORT]).map(function (access) {\n\t\t\t\t\treturn access.subject;\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (affiliateField === null) {\n\t\t\t\tselector[siteField] = {$in: sites};\n\t\t\t}\n\t\t\tif (siteField === null) {\n\t\t\t\tselector[affiliateField] = {$in: affiliates};\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (sites.length || affiliates.length) {\n\t\t\t\t\tvar sel = [];\n\t\t\t\t\tselector = {$and: [selector, {$or: sel}]}\n\t\t\t\t\tif (sites.length > 0) {\n\t\t\t\t\t\tvar item = {};\n\t\t\t\t\t\titem[siteField] = {$in: sites};\n\t\t\t\t\t\tsel.push(item);\n\t\t\t\t\t}\n\t\t\t\t\tif (affiliates.length > 0) {\n\t\t\t\t\t\tvar item = {};\n\t\t\t\t\t\titem[affiliateField] = {$in: affiliates};\n\t\t\t\t\t\tsel.push(item);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tselector._id = 'NONE';\n\t\t\t\t}\n\t\t\t}\n//\t\t\tconsole.log(JSON.stringify(selector))\n\t\t\treturn selector;\n\t\t}\n\n\t\thasGlobalAccess() {\n\t\t\treturn this.hasAccess([Scope.GLOBAL], [Role.ADMIN, Role.SUPPORT]);\n\t\t}\n\n\t\tconnectFrontend(): DDP.Connection {\n\t\t\treturn null;\n\t\t}\n\n\t\tcreateToken(): any {\n\t\t\treturn null;\n\t\t}\n\n\t\tcheckPassword(password: string): boolean {\n\t\t\treturn false;\n\t\t}\n\n\t\tgravatarUrl(size: number) {\n\t\t\treturn 'http://www.gravatar.com/avatar/' + md5(this.email.toLowerCase()) + '?d=mm&s=' + size;\n\t\t}\n\n\t\tfullName(): string {\n\t\t\treturn this.firstName ? this.firstName + \" \" + this.lastName : this.username;\n\t\t}\n\n\t\tdisplayName(): string {\n\t\t\treturn this.username;\n\t\t}\n\n\t\tgetNormalizedFirstName(): string {\n\t\t\treturn this.firstName;\n\t\t}\n\n\t\tgetNormalizedLastName(): string {\n\t\t\treturn this.lastName;\n\t\t}\n\n\t\tisMe() {\n\t\t\tvar active = Profile.active();\n\t\t\tif (!active) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn active.id === this.id;\n\t\t}\n\n\t\tgo() {\n\t\t\tPages.Page.go(this.href());\n\t\t}\n\n\t\thref(): string {\n\t\t\treturn '/users/' + this.username;\n\t\t}\n\n\t\t/**\n\t\t * Server only. Generate and save OTP secret.\n\t\t *\n\t\t *\n\t\t */\n\t\tgenerateOtpSecret(): string { return ''; }\n\n\t\t/**\n\t\t * Server only. Enable OTP auth for user.\n\t\t *\n\t\t * @param token Required. One time password acquired from user\n\t\t */\n\t\tenableOtp(token: string) { }\n\n\t\t/**\n\t\t * Server only. Disable OTP auth for user.\n\t\t *\n\t\t * @param token Required. One time password acquired from user\n\t\t */\n\t\tdisableOtp(token: string) { }\n\t\t\n\t\tisGlobal() {\n\t\t\treturn this.hasAccess([Scope.GLOBAL], [Role.ADMIN, Role.SUPPORT]);\n\t\t}\n\t\n\t\tisSite() {\n\t\t\tif (this.isGlobal()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn this.hasAccess([Scope.SITE], [Role.ADMIN, Role.SUPPORT]);\n\t\t}\n\t\n\t\tisAffiliate() {\n\t\t\tif (this.isGlobal() || this.isSite()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn this.hasAccess([Scope.AFFILIATE], [Role.ADMIN, Role.SUPPORT]);\n\t\t}\n\n\t\tbadge() {\n\t\t\treturn '<span class=\"label label-default\">' + this.username + '</span>';\n\t\t}\n\n\t\tvipStatus() {\n\t\t\tif (this.isVip == VipStatus.ACTIVE) {\n\t\t\t\treturn 'Active';\n\t\t\t}\n\t\t\telse if (this.isVip == VipStatus.INACTIVE) {\n\t\t\t\treturn 'Inactive';\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn 'Not a VIP';\n\t\t\t}\n\t\t}\n\n\t}\n\n\texport class Access extends BaseModel<Profile> {\n\n\t\tstatic db = new DataModel<Access>({\n\t\t\tsource: Access,\n\t\t\tname: 'Users.Access'\n\t\t});\n\n\t\trole: Role;\n\t\tscope: Scope;\n\t\tsubject: string;\n\n\t\troleName(): string {\n\t\t\treturn roles[this.role].name;\n\t\t}\n\n\t\troleIcon(): string {\n\t\t\treturn roles[this.role].icon;\n\t\t}\n\n\t\tscopeName(): string {\n\t\t\treturn scopes[this.scope].name;\n\t\t}\n\n\t\tscopeIcon(): string {\n\t\t\treturn scopes[this.scope].icon;\n\t\t}\n\n\t\tsubjectName(): string {\n\t\t\tif (this.scope == Scope.GLOBAL) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse if (this.scope == Scope.SITE) {\n\t\t\t\tvar site = Backend.Site.db.findOne(this.subject);\n\t\t\t\tif (!site) {\n\t\t\t\t\treturn 'unknown site';\n\t\t\t\t}\n\t\t\t\treturn site.name;\n\t\t\t}\n\t\t\telse if (this.scope == Scope.AFFILIATE) {\n\t\t\t\tvar aff = Affiliates.Affiliate.db.findOne(this.subject);\n\t\t\t\tif (!aff) {\n\t\t\t\t\treturn 'unknown affiliate';\n\t\t\t\t}\n\t\t\t\treturn aff.site.fetch().name + ' ' + aff.name;\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}",
"/// <reference path=\".client.d.ts\" />\n\nmodule Users {\n\n\texport function isGlobal() {\n\t\tvar user = Profile.active();\n\t\tif (!user) {\n\t\t\treturn;\n\t\t}\n\t\treturn user.isGlobal();\n\t}\n\n\texport function isSite() {\n\t\tvar user = Profile.active();\n\t\tif (!user) {\n\t\t\treturn;\n\t\t}\n\t\treturn user.isSite();\n\t}\n\n\texport function isAffiliate() {\n\t\tvar user = Profile.active();\n\t\tif (!user) {\n\t\t\treturn;\n\t\t}\n\t\treturn user.isAffiliate();\n\t}\n\n}",
"/// <reference path=\".client.d.ts\" />\n\nmodule Users {\n\n\tTracker.autorun(function(){\n\t\tif (!Meteor.userId()) {\n\t\t\treturn;\n\t\t}\n\t\tconsole.log('subscribing profile');\n\t\tProfile.db.subscribe({userId: Meteor.userId()});\n\t});\n\n\texport function getActiveUser(): User {\n\t\tif (Session.equals('loaded', true)) {\n\t\t\tconsole.log('in getActiveUser()');\n\t\t\treturn User.active();\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tUser.checkUsernameAvailability = function (username, site?, callback?) {\n\t\tMeteor.call('checkUsernameAvailability', username, site, (err, res) => callback(res));\n\t\treturn false;\n\t};\n\n\tUser.checkEmailAvailability = function (email, site?, callback?) {\n\t\tMeteor.call('checkEmailAvailability', email, site, (err, res) => callback(res));\n\t\treturn false;\n\t};\n\n\tUser.loginWithPassword = function(username: string, password: string, callback: (err?) => void) {\n\t\tMeteor.loginWithPassword(Meteor.settings.app + '+' + username, password, callback);\n\t};\n\n\tUser.forgotPassword = function(email: string, callback: (err?) => void) {\n\t\tMeteor.call('Users/forgotPassword', email, callback);\n\t};\n\n\n\t// refCode init\n\n\tMeteor.startup(function() {\n\n\t\tvar qs = parseQueryString(window.location.search);\n\n\t\t// query string sessKey var login\n\t\tif (qs.sessKey) {\n\t\t\tvar targetUrl = window.location.pathname;\n\t\t\tMeteor.loginWithToken(qs.sessKey, function(err?){\n\t\t\t\tif (err) {\n\t\t\t\t\tconsole.log(err);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tPages.go(targetUrl);\n\t\t\t});\n\t\t}\n\n\t\tif (qs.refCode || qs.ref) {\n\t\t\t$.cookie('refCode', qs.refCode || qs.ref, {expires: 7});\n\t\t}\n\t});\n\t//Session.set('refCode', $.cookie('refCode'));\n\n}\n"
]
}