Built motion from commit (unavailable).|2.5.8
[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 _0xcb81=['stringify','BOOLEAN','ENUM','voice','sequelize','lodash','VIRTUAL','STRING','setDataValue','alias','getDataValue','TEXT','type','select','values','isArray'];(function(_0x42acd3,_0x2ecbee){var _0x229cab=function(_0x3baadc){while(--_0x3baadc){_0x42acd3['push'](_0x42acd3['shift']());}};_0x229cab(++_0x2ecbee);}(_0xcb81,0x154));var _0x1cb8=function(_0x4ca333,_0x1218a3){_0x4ca333=_0x4ca333-0x0;var _0x13b2e1=_0xcb81[_0x4ca333];return _0x13b2e1;};'use strict';var Sequelize=require(_0x1cb8('0x0'));var _=require(_0x1cb8('0x1'));module['exports']={'name':{'type':Sequelize[_0x1cb8('0x2')],'get':function(_0x4fb901){return this['getDataValue']('alias');}},'alias':{'type':Sequelize[_0x1cb8('0x3')],'allowNull':![],'set':function(_0x33a8f2){this[_0x1cb8('0x4')](_0x1cb8('0x5'),_0x33a8f2?_0x33a8f2:this[_0x1cb8('0x6')]('name'));}},'type':{'type':Sequelize[_0x1cb8('0x3')],'allowNull':![]},'values':{'type':Sequelize[_0x1cb8('0x7')]('long'),'get':function(){if(this[_0x1cb8('0x6')](_0x1cb8('0x8'))===_0x1cb8('0x9')){return JSON['parse'](this[_0x1cb8('0x6')]('values'));}else{return this['getDataValue'](_0x1cb8('0xa'));}},'set':function(_0x2158a9){if(Array[_0x1cb8('0xb')](_0x2158a9)){this[_0x1cb8('0x4')](_0x1cb8('0xa'),JSON[_0x1cb8('0xc')](_0x2158a9));}else{this[_0x1cb8('0x4')](_0x1cb8('0xa'),_0x2158a9);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x1cb8('0xd')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x1cb8('0xe')](_0x1cb8('0xf'))}};