07dffa2f7c556fefaa61ef9c99dc2a1a41050351
[motion2.git] / server / api / userProfile / userProfile.attributes.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 _0xad95=['STRING','setDataValue','getDataValue','BOOLEAN','sequelize','exports'];(function(_0x53f964,_0x3b52b8){var _0x17be6c=function(_0x25a732){while(--_0x25a732){_0x53f964['push'](_0x53f964['shift']());}};_0x17be6c(++_0x3b52b8);}(_0xad95,0x70));var _0x5ad9=function(_0x5aa107,_0x48c3f9){_0x5aa107=_0x5aa107-0x0;var _0x45c515=_0xad95[_0x5aa107];return _0x45c515;};'use strict';var Sequelize=require(_0x5ad9('0x0'));module[_0x5ad9('0x1')]={'name':{'type':Sequelize[_0x5ad9('0x2')],'allowNull':![],'unique':'name'},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x409d5b){this[_0x5ad9('0x3')]('crudPermissions',_0x409d5b?_0x409d5b['join'](''):[]);},'get':function(){return this[_0x5ad9('0x4')]('crudPermissions')?this['getDataValue']('crudPermissions')['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x5ad9('0x2')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0x5ad9('0x5')],'defaultValue':![]}};