Built motion from commit (unavailable).|2.4.19
[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 _0x1909=['alias','STRING','setDataValue','name','long','select','parse','values','isArray','stringify','sequelize','lodash','exports','getDataValue'];(function(_0x14cf67,_0x389fc9){var _0x262506=function(_0x20c37a){while(--_0x20c37a){_0x14cf67['push'](_0x14cf67['shift']());}};_0x262506(++_0x389fc9);}(_0x1909,0xce));var _0x9190=function(_0x2e551a,_0x428608){_0x2e551a=_0x2e551a-0x0;var _0x5c6d03=_0x1909[_0x2e551a];return _0x5c6d03;};'use strict';var Sequelize=require(_0x9190('0x0'));var _=require(_0x9190('0x1'));module[_0x9190('0x2')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x279112){return this[_0x9190('0x3')](_0x9190('0x4'));}},'alias':{'type':Sequelize[_0x9190('0x5')],'allowNull':![],'set':function(_0x37fda4){this[_0x9190('0x6')](_0x9190('0x4'),_0x37fda4?_0x37fda4:this[_0x9190('0x3')](_0x9190('0x7')));}},'type':{'type':Sequelize[_0x9190('0x5')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x9190('0x8')),'get':function(){if(this[_0x9190('0x3')]('type')===_0x9190('0x9')){return JSON[_0x9190('0xa')](this['getDataValue']('values'));}else{return this[_0x9190('0x3')](_0x9190('0xb'));}},'set':function(_0xe7eaab){if(Array[_0x9190('0xc')](_0xe7eaab)){this[_0x9190('0x6')](_0x9190('0xb'),JSON[_0x9190('0xd')](_0xe7eaab));}else{this[_0x9190('0x6')](_0x9190('0xb'),_0xe7eaab);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};