4bbdc846a59425371f628ce5810280819047b3bd
[motion2.git] / server / api / cmCustomField / cmCustomField.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 _0x7e4a=['getDataValue','alias','STRING','name','TEXT','long','type','values','isArray','setDataValue','stringify','BOOLEAN','voice','sequelize','lodash','exports','VIRTUAL'];(function(_0x3607a3,_0x18b07b){var _0x2e8f5e=function(_0x30245b){while(--_0x30245b){_0x3607a3['push'](_0x3607a3['shift']());}};_0x2e8f5e(++_0x18b07b);}(_0x7e4a,0xea));var _0xa7e4=function(_0x465a0c,_0x19d4d5){_0x465a0c=_0x465a0c-0x0;var _0x1e202e=_0x7e4a[_0x465a0c];return _0x1e202e;};'use strict';var Sequelize=require(_0xa7e4('0x0'));var _=require(_0xa7e4('0x1'));module[_0xa7e4('0x2')]={'name':{'type':Sequelize[_0xa7e4('0x3')],'get':function(_0x2073bb){return this[_0xa7e4('0x4')](_0xa7e4('0x5'));}},'alias':{'type':Sequelize[_0xa7e4('0x6')],'allowNull':![],'set':function(_0x949f2a){this['setDataValue']('alias',_0x949f2a?_0x949f2a:this[_0xa7e4('0x4')](_0xa7e4('0x7')));}},'type':{'type':Sequelize[_0xa7e4('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0xa7e4('0x8')](_0xa7e4('0x9')),'get':function(){if(this[_0xa7e4('0x4')](_0xa7e4('0xa'))==='select'){return JSON['parse'](this[_0xa7e4('0x4')](_0xa7e4('0xb')));}else{return this['getDataValue']('values');}},'set':function(_0x444cfc){if(Array[_0xa7e4('0xc')](_0x444cfc)){this[_0xa7e4('0xd')]('values',JSON[_0xa7e4('0xe')](_0x444cfc));}else{this[_0xa7e4('0xd')](_0xa7e4('0xb'),_0x444cfc);}}},'required':{'type':Sequelize[_0xa7e4('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xa7e4('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0xa7e4('0x10'))}};