Built motion from commit (unavailable).|2.5.19
[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 _0x207c=['long','type','select','parse','values','isArray','BOOLEAN','ENUM','lodash','exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','TEXT'];(function(_0x55e724,_0x8f22f1){var _0x1b317c=function(_0x21d4dd){while(--_0x21d4dd){_0x55e724['push'](_0x55e724['shift']());}};_0x1b317c(++_0x8f22f1);}(_0x207c,0x1e8));var _0xc207=function(_0x4d18c2,_0x9b85d0){_0x4d18c2=_0x4d18c2-0x0;var _0x1cadf9=_0x207c[_0x4d18c2];return _0x1cadf9;};'use strict';var Sequelize=require('sequelize');var _=require(_0xc207('0x0'));module[_0xc207('0x1')]={'name':{'type':Sequelize[_0xc207('0x2')],'get':function(_0xaaba3d){return this[_0xc207('0x3')](_0xc207('0x4'));}},'alias':{'type':Sequelize[_0xc207('0x5')],'allowNull':![],'set':function(_0x4b9daa){this[_0xc207('0x6')]('alias',_0x4b9daa?_0x4b9daa:this['getDataValue']('name'));}},'type':{'type':Sequelize[_0xc207('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0xc207('0x7')](_0xc207('0x8')),'get':function(){if(this['getDataValue'](_0xc207('0x9'))===_0xc207('0xa')){return JSON[_0xc207('0xb')](this['getDataValue'](_0xc207('0xc')));}else{return this[_0xc207('0x3')](_0xc207('0xc'));}},'set':function(_0x13ec41){if(Array[_0xc207('0xd')](_0x13ec41)){this[_0xc207('0x6')]('values',JSON['stringify'](_0x13ec41));}else{this['setDataValue'](_0xc207('0xc'),_0x13ec41);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xc207('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xc207('0xf')]('voice')}};