Built motion from commit (unavailable).|2.5.31
[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 _0x0ef0=['sequelize','lodash','VIRTUAL','getDataValue','alias','STRING','name','TEXT','type','select','parse','values','setDataValue','stringify','BOOLEAN','voice'];(function(_0x3f288d,_0x3c7a97){var _0x5e8468=function(_0xb0189c){while(--_0xb0189c){_0x3f288d['push'](_0x3f288d['shift']());}};_0x5e8468(++_0x3c7a97);}(_0x0ef0,0x80));var _0x00ef=function(_0xc68650,_0x258343){_0xc68650=_0xc68650-0x0;var _0x57bd40=_0x0ef0[_0xc68650];return _0x57bd40;};'use strict';var Sequelize=require(_0x00ef('0x0'));var _=require(_0x00ef('0x1'));module['exports']={'name':{'type':Sequelize[_0x00ef('0x2')],'get':function(_0x282cce){return this[_0x00ef('0x3')](_0x00ef('0x4'));}},'alias':{'type':Sequelize[_0x00ef('0x5')],'allowNull':![],'set':function(_0x92e0b){this['setDataValue']('alias',_0x92e0b?_0x92e0b:this[_0x00ef('0x3')](_0x00ef('0x6')));}},'type':{'type':Sequelize[_0x00ef('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x00ef('0x7')]('long'),'get':function(){if(this[_0x00ef('0x3')](_0x00ef('0x8'))===_0x00ef('0x9')){return JSON[_0x00ef('0xa')](this[_0x00ef('0x3')]('values'));}else{return this[_0x00ef('0x3')](_0x00ef('0xb'));}},'set':function(_0x2dce41){if(Array['isArray'](_0x2dce41)){this[_0x00ef('0xc')]('values',JSON[_0x00ef('0xd')](_0x2dce41));}else{this[_0x00ef('0xc')](_0x00ef('0xb'),_0x2dce41);}}},'required':{'type':Sequelize[_0x00ef('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x00ef('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x00ef('0xf'))}};