0c0c6657e97b2260995b2adf4fcf698ac4bb08fc
[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 _0x784a=['crudPermissions','getDataValue','split','sequelize','exports','STRING','setDataValue'];(function(_0x4c9380,_0x2fefc0){var _0x49a523=function(_0x165e85){while(--_0x165e85){_0x4c9380['push'](_0x4c9380['shift']());}};_0x49a523(++_0x2fefc0);}(_0x784a,0x130));var _0xa784=function(_0x1cc211,_0x4856f1){_0x1cc211=_0x1cc211-0x0;var _0x5df05a=_0x784a[_0x1cc211];return _0x5df05a;};'use strict';var Sequelize=require(_0xa784('0x0'));module[_0xa784('0x1')]={'name':{'type':Sequelize[_0xa784('0x2')],'allowNull':![],'unique':'name'},'crudPermissions':{'type':Sequelize[_0xa784('0x2')],'set':function(_0x478805){this[_0xa784('0x3')](_0xa784('0x4'),_0x478805?_0x478805['join'](''):[]);},'get':function(){return this[_0xa784('0x5')]('crudPermissions')?this['getDataValue']('crudPermissions')[_0xa784('0x6')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0xa784('0x2')],'allowNull':!![]}};