a7de058c02bcc7713ec66ea35066cd1946d92d37
[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 _0xda3f=['getDataValue','crudPermissions','exports','STRING','setDataValue','join'];(function(_0x42310b,_0x2fc4ab){var _0x46a752=function(_0xb33c3f){while(--_0xb33c3f){_0x42310b['push'](_0x42310b['shift']());}};_0x46a752(++_0x2fc4ab);}(_0xda3f,0xec));var _0xfda3=function(_0x6f5112,_0x5294bb){_0x6f5112=_0x6f5112-0x0;var _0x55542a=_0xda3f[_0x6f5112];return _0x55542a;};'use strict';var Sequelize=require('sequelize');module[_0xfda3('0x0')]={'name':{'type':Sequelize[_0xfda3('0x1')],'allowNull':![],'unique':'name'},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x5d7071){this[_0xfda3('0x2')]('crudPermissions',_0x5d7071?_0x5d7071[_0xfda3('0x3')](''):[]);},'get':function(){return this[_0xfda3('0x4')]('crudPermissions')?this[_0xfda3('0x4')](_0xfda3('0x5'))['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize['STRING'],'allowNull':!![]}};