c177c2b4ce7881fefd4fc0041816106419ad4c45
[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 _0x0188=['stringify','BOOLEAN','ENUM','voice','lodash','VIRTUAL','getDataValue','STRING','setDataValue','alias','TEXT','long','select','parse','values'];(function(_0x363540,_0x2536c5){var _0x3ec8ba=function(_0x18c498){while(--_0x18c498){_0x363540['push'](_0x363540['shift']());}};_0x3ec8ba(++_0x2536c5);}(_0x0188,0x1b7));var _0x8018=function(_0x102977,_0x3a99a6){_0x102977=_0x102977-0x0;var _0x15c466=_0x0188[_0x102977];return _0x15c466;};'use strict';var Sequelize=require('sequelize');var _=require(_0x8018('0x0'));module['exports']={'name':{'type':Sequelize[_0x8018('0x1')],'get':function(_0x553973){return this[_0x8018('0x2')]('alias');}},'alias':{'type':Sequelize[_0x8018('0x3')],'allowNull':![],'set':function(_0x1d9006){this[_0x8018('0x4')](_0x8018('0x5'),_0x1d9006?_0x1d9006:this[_0x8018('0x2')]('name'));}},'type':{'type':Sequelize[_0x8018('0x3')],'allowNull':![]},'values':{'type':Sequelize[_0x8018('0x6')](_0x8018('0x7')),'get':function(){if(this['getDataValue']('type')===_0x8018('0x8')){return JSON[_0x8018('0x9')](this[_0x8018('0x2')](_0x8018('0xa')));}else{return this[_0x8018('0x2')](_0x8018('0xa'));}},'set':function(_0x3c9b50){if(Array['isArray'](_0x3c9b50)){this[_0x8018('0x4')](_0x8018('0xa'),JSON[_0x8018('0xb')](_0x3c9b50));}else{this[_0x8018('0x4')](_0x8018('0xa'),_0x3c9b50);}}},'required':{'type':Sequelize[_0x8018('0xc')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x8018('0xc')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x8018('0xd')](_0x8018('0xe'))}};