2bc99c37b81d33e7eb74f2f16987d8c353355e6d
[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 _0x2209=['alias','setDataValue','getDataValue','name','STRING','TEXT','long','select','parse','values','stringify','BOOLEAN','ENUM','sequelize','lodash','exports','VIRTUAL'];(function(_0xa656ef,_0x3d31df){var _0x20e81=function(_0x128119){while(--_0x128119){_0xa656ef['push'](_0xa656ef['shift']());}};_0x20e81(++_0x3d31df);}(_0x2209,0x95));var _0x9220=function(_0x4e87fb,_0x1db313){_0x4e87fb=_0x4e87fb-0x0;var _0x38f8df=_0x2209[_0x4e87fb];return _0x38f8df;};'use strict';var Sequelize=require(_0x9220('0x0'));var _=require(_0x9220('0x1'));module[_0x9220('0x2')]={'name':{'type':Sequelize[_0x9220('0x3')],'get':function(_0x29dc9b){return this['getDataValue'](_0x9220('0x4'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x348220){this[_0x9220('0x5')](_0x9220('0x4'),_0x348220?_0x348220:this[_0x9220('0x6')](_0x9220('0x7')));}},'type':{'type':Sequelize[_0x9220('0x8')],'allowNull':![]},'values':{'type':Sequelize[_0x9220('0x9')](_0x9220('0xa')),'get':function(){if(this[_0x9220('0x6')]('type')===_0x9220('0xb')){return JSON[_0x9220('0xc')](this['getDataValue'](_0x9220('0xd')));}else{return this[_0x9220('0x6')](_0x9220('0xd'));}},'set':function(_0xe6a232){if(Array['isArray'](_0xe6a232)){this[_0x9220('0x5')](_0x9220('0xd'),JSON[_0x9220('0xe')](_0xe6a232));}else{this[_0x9220('0x5')](_0x9220('0xd'),_0xe6a232);}}},'required':{'type':Sequelize[_0x9220('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x9220('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x9220('0x10')]('voice')}};