3277b0e2f7cadc2b59801171604ffa11cb52eb84
[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 _0x02a8=['STRING','alias','name','TEXT','long','select','parse','values','isArray','setDataValue','BOOLEAN','ENUM','sequelize','lodash','exports','VIRTUAL','getDataValue'];(function(_0x2d7f0e,_0x3e6fbd){var _0x110b07=function(_0x557b00){while(--_0x557b00){_0x2d7f0e['push'](_0x2d7f0e['shift']());}};_0x110b07(++_0x3e6fbd);}(_0x02a8,0x1a4));var _0x802a=function(_0x43894b,_0x39b3c3){_0x43894b=_0x43894b-0x0;var _0x10da5f=_0x02a8[_0x43894b];return _0x10da5f;};'use strict';var Sequelize=require(_0x802a('0x0'));var _=require(_0x802a('0x1'));module[_0x802a('0x2')]={'name':{'type':Sequelize[_0x802a('0x3')],'get':function(_0x3965be){return this[_0x802a('0x4')]('alias');}},'alias':{'type':Sequelize[_0x802a('0x5')],'allowNull':![],'set':function(_0x343da1){this['setDataValue'](_0x802a('0x6'),_0x343da1?_0x343da1:this[_0x802a('0x4')](_0x802a('0x7')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x802a('0x8')](_0x802a('0x9')),'get':function(){if(this[_0x802a('0x4')]('type')===_0x802a('0xa')){return JSON[_0x802a('0xb')](this[_0x802a('0x4')](_0x802a('0xc')));}else{return this[_0x802a('0x4')](_0x802a('0xc'));}},'set':function(_0x4921d6){if(Array[_0x802a('0xd')](_0x4921d6)){this[_0x802a('0xe')](_0x802a('0xc'),JSON['stringify'](_0x4921d6));}else{this['setDataValue'](_0x802a('0xc'),_0x4921d6);}}},'required':{'type':Sequelize[_0x802a('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x802a('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x802a('0x10')]('voice')}};