783846ca32919289c86b0dfc4e1ce881cbb0b3c7
[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 _0xcae3=['getDataValue','alias','STRING','name','TEXT','long','parse','values','isArray','setDataValue','BOOLEAN','ENUM','voice','sequelize','lodash','exports','VIRTUAL'];(function(_0x4c260a,_0x148241){var _0x17bbdd=function(_0x4f3e9f){while(--_0x4f3e9f){_0x4c260a['push'](_0x4c260a['shift']());}};_0x17bbdd(++_0x148241);}(_0xcae3,0x73));var _0x3cae=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0xcae3[_0x1facfa];return _0x9ec701;};'use strict';var Sequelize=require(_0x3cae('0x0'));var _=require(_0x3cae('0x1'));module[_0x3cae('0x2')]={'name':{'type':Sequelize[_0x3cae('0x3')],'get':function(_0x4ff8ef){return this[_0x3cae('0x4')](_0x3cae('0x5'));}},'alias':{'type':Sequelize[_0x3cae('0x6')],'allowNull':![],'set':function(_0x1c2b63){this['setDataValue'](_0x3cae('0x5'),_0x1c2b63?_0x1c2b63:this[_0x3cae('0x4')](_0x3cae('0x7')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x3cae('0x8')](_0x3cae('0x9')),'get':function(){if(this['getDataValue']('type')==='select'){return JSON[_0x3cae('0xa')](this[_0x3cae('0x4')](_0x3cae('0xb')));}else{return this[_0x3cae('0x4')](_0x3cae('0xb'));}},'set':function(_0x3690a3){if(Array[_0x3cae('0xc')](_0x3690a3)){this[_0x3cae('0xd')](_0x3cae('0xb'),JSON['stringify'](_0x3690a3));}else{this[_0x3cae('0xd')]('values',_0x3690a3);}}},'required':{'type':Sequelize[_0x3cae('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x3cae('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x3cae('0xf')](_0x3cae('0x10'))}};