097328ee1cf343169ababd62ed301a777926f1a6
[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 _0xc73e=['TEXT','select','parse','values','isArray','stringify','BOOLEAN','ENUM','voice','sequelize','lodash','VIRTUAL','setDataValue','getDataValue','name','STRING'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xc73e,0x1e9));var _0xec73=function(_0x2fbd18,_0x51a739){_0x2fbd18=_0x2fbd18-0x0;var _0x2fc8f8=_0xc73e[_0x2fbd18];return _0x2fc8f8;};'use strict';var Sequelize=require(_0xec73('0x0'));var _=require(_0xec73('0x1'));module['exports']={'name':{'type':Sequelize[_0xec73('0x2')],'get':function(_0x39de1c){return this['getDataValue']('alias');}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x36ed48){this[_0xec73('0x3')]('alias',_0x36ed48?_0x36ed48:this[_0xec73('0x4')](_0xec73('0x5')));}},'type':{'type':Sequelize[_0xec73('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0xec73('0x7')]('long'),'get':function(){if(this[_0xec73('0x4')]('type')===_0xec73('0x8')){return JSON[_0xec73('0x9')](this[_0xec73('0x4')](_0xec73('0xa')));}else{return this['getDataValue']('values');}},'set':function(_0x554973){if(Array[_0xec73('0xb')](_0x554973)){this['setDataValue']('values',JSON[_0xec73('0xc')](_0x554973));}else{this[_0xec73('0x3')](_0xec73('0xa'),_0x554973);}}},'required':{'type':Sequelize[_0xec73('0xd')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xec73('0xd')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xec73('0xe')](_0xec73('0xf'))}};