0dc3a4d765cccb6437d95f9be3a5638a0e4bcdba
[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 _0x26c6=['sequelize','exports','STRING','crudPermissions','getDataValue','split'];(function(_0x10fb57,_0x39bf77){var _0x440ead=function(_0x3a145b){while(--_0x3a145b){_0x10fb57['push'](_0x10fb57['shift']());}};_0x440ead(++_0x39bf77);}(_0x26c6,0x84));var _0x626c=function(_0x2c454,_0xdab67c){_0x2c454=_0x2c454-0x0;var _0x162978=_0x26c6[_0x2c454];return _0x162978;};'use strict';var Sequelize=require(_0x626c('0x0'));module[_0x626c('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':'name'},'crudPermissions':{'type':Sequelize[_0x626c('0x2')],'set':function(_0x4b26da){this['setDataValue'](_0x626c('0x3'),_0x4b26da?_0x4b26da['join'](''):[]);},'get':function(){return this['getDataValue'](_0x626c('0x3'))?this[_0x626c('0x4')](_0x626c('0x3'))[_0x626c('0x5')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x626c('0x2')],'allowNull':!![]}};