960119966bcb2fc14b6841fb39c8caa4e7e8c791
[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 _0xe015=['setDataValue','alias','name','type','select','parse','values','isArray','stringify','BOOLEAN','voice','sequelize','lodash','exports','getDataValue','STRING'];(function(_0x333325,_0x43a920){var _0x411c49=function(_0x49e0ad){while(--_0x49e0ad){_0x333325['push'](_0x333325['shift']());}};_0x411c49(++_0x43a920);}(_0xe015,0x13b));var _0x5e01=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0xe015[_0x465028];return _0xb783d4;};'use strict';var Sequelize=require(_0x5e01('0x0'));var _=require(_0x5e01('0x1'));module[_0x5e01('0x2')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x51f689){return this[_0x5e01('0x3')]('alias');}},'alias':{'type':Sequelize[_0x5e01('0x4')],'allowNull':![],'set':function(_0x420f00){this[_0x5e01('0x5')](_0x5e01('0x6'),_0x420f00?_0x420f00:this['getDataValue'](_0x5e01('0x7')));}},'type':{'type':Sequelize[_0x5e01('0x4')],'allowNull':![]},'values':{'type':Sequelize['TEXT']('long'),'get':function(){if(this[_0x5e01('0x3')](_0x5e01('0x8'))===_0x5e01('0x9')){return JSON[_0x5e01('0xa')](this[_0x5e01('0x3')](_0x5e01('0xb')));}else{return this['getDataValue'](_0x5e01('0xb'));}},'set':function(_0x502518){if(Array[_0x5e01('0xc')](_0x502518)){this['setDataValue'](_0x5e01('0xb'),JSON[_0x5e01('0xd')](_0x502518));}else{this['setDataValue'](_0x5e01('0xb'),_0x502518);}}},'required':{'type':Sequelize[_0x5e01('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x5e01('0xf'))}};