2af028c277649fb14a052ef8d4cb265b6a9e6ab1
[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 _0x89c3=['select','parse','values','BOOLEAN','ENUM','voice','sequelize','lodash','VIRTUAL','getDataValue','alias','STRING','setDataValue','TEXT','type'];(function(_0x80414,_0x1e3d2f){var _0xeec72a=function(_0x4f82ef){while(--_0x4f82ef){_0x80414['push'](_0x80414['shift']());}};_0xeec72a(++_0x1e3d2f);}(_0x89c3,0x8d));var _0x389c=function(_0x172575,_0x46cd6a){_0x172575=_0x172575-0x0;var _0x18e1b6=_0x89c3[_0x172575];return _0x18e1b6;};'use strict';var Sequelize=require(_0x389c('0x0'));var _=require(_0x389c('0x1'));module['exports']={'name':{'type':Sequelize[_0x389c('0x2')],'get':function(_0x1d578c){return this[_0x389c('0x3')](_0x389c('0x4'));}},'alias':{'type':Sequelize[_0x389c('0x5')],'allowNull':![],'set':function(_0x1eccc6){this[_0x389c('0x6')](_0x389c('0x4'),_0x1eccc6?_0x1eccc6:this['getDataValue']('name'));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x389c('0x7')]('long'),'get':function(){if(this[_0x389c('0x3')](_0x389c('0x8'))===_0x389c('0x9')){return JSON[_0x389c('0xa')](this['getDataValue']('values'));}else{return this[_0x389c('0x3')](_0x389c('0xb'));}},'set':function(_0x4dc89c){if(Array['isArray'](_0x4dc89c)){this[_0x389c('0x6')]('values',JSON['stringify'](_0x4dc89c));}else{this[_0x389c('0x6')](_0x389c('0xb'),_0x4dc89c);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x389c('0xc')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x389c('0xd')](_0x389c('0xe'))}};