Built motion from commit (unavailable).|2.5.28
[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 _0x7764=['STRING','setDataValue','name','long','parse','values','isArray','stringify','BOOLEAN','ENUM','voice','sequelize','lodash','exports','VIRTUAL','getDataValue','alias'];(function(_0x10f6f2,_0x51b75e){var _0x57c705=function(_0x2bbe42){while(--_0x2bbe42){_0x10f6f2['push'](_0x10f6f2['shift']());}};_0x57c705(++_0x51b75e);}(_0x7764,0xa4));var _0x4776=function(_0x454165,_0x1f3e74){_0x454165=_0x454165-0x0;var _0x56db53=_0x7764[_0x454165];return _0x56db53;};'use strict';var Sequelize=require(_0x4776('0x0'));var _=require(_0x4776('0x1'));module[_0x4776('0x2')]={'name':{'type':Sequelize[_0x4776('0x3')],'get':function(_0x90273){return this[_0x4776('0x4')](_0x4776('0x5'));}},'alias':{'type':Sequelize[_0x4776('0x6')],'allowNull':![],'set':function(_0x3b28ba){this[_0x4776('0x7')]('alias',_0x3b28ba?_0x3b28ba:this['getDataValue'](_0x4776('0x8')));}},'type':{'type':Sequelize[_0x4776('0x6')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x4776('0x9')),'get':function(){if(this[_0x4776('0x4')]('type')==='select'){return JSON[_0x4776('0xa')](this['getDataValue'](_0x4776('0xb')));}else{return this[_0x4776('0x4')](_0x4776('0xb'));}},'set':function(_0x3baf2f){if(Array[_0x4776('0xc')](_0x3baf2f)){this[_0x4776('0x7')](_0x4776('0xb'),JSON[_0x4776('0xd')](_0x3baf2f));}else{this[_0x4776('0x7')](_0x4776('0xb'),_0x3baf2f);}}},'required':{'type':Sequelize[_0x4776('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x4776('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x4776('0xf')](_0x4776('0x10'))}};