5dbf2102d36a23882723e23f1d8179d64515c6c7
[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 _0xf082=['type','select','parse','values','isArray','stringify','BOOLEAN','ENUM','voice','sequelize','exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT'];(function(_0x4ce90d,_0x46cc8b){var _0x1148cf=function(_0x5bffa6){while(--_0x5bffa6){_0x4ce90d['push'](_0x4ce90d['shift']());}};_0x1148cf(++_0x46cc8b);}(_0xf082,0x171));var _0x2f08=function(_0x44072f,_0x139ecb){_0x44072f=_0x44072f-0x0;var _0x58f817=_0xf082[_0x44072f];return _0x58f817;};'use strict';var Sequelize=require(_0x2f08('0x0'));var _=require('lodash');module[_0x2f08('0x1')]={'name':{'type':Sequelize[_0x2f08('0x2')],'get':function(_0x2b0395){return this[_0x2f08('0x3')](_0x2f08('0x4'));}},'alias':{'type':Sequelize[_0x2f08('0x5')],'allowNull':![],'set':function(_0x2e6a9a){this[_0x2f08('0x6')](_0x2f08('0x4'),_0x2e6a9a?_0x2e6a9a:this[_0x2f08('0x3')](_0x2f08('0x7')));}},'type':{'type':Sequelize[_0x2f08('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x2f08('0x8')]('long'),'get':function(){if(this['getDataValue'](_0x2f08('0x9'))===_0x2f08('0xa')){return JSON[_0x2f08('0xb')](this['getDataValue'](_0x2f08('0xc')));}else{return this[_0x2f08('0x3')](_0x2f08('0xc'));}},'set':function(_0x29f910){if(Array[_0x2f08('0xd')](_0x29f910)){this[_0x2f08('0x6')](_0x2f08('0xc'),JSON[_0x2f08('0xe')](_0x29f910));}else{this[_0x2f08('0x6')]('values',_0x29f910);}}},'required':{'type':Sequelize[_0x2f08('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x2f08('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x2f08('0x10')](_0x2f08('0x11'))}};