Built motion from commit d1eab355.|2.6.28
[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 _0xf974=['parse','values','isArray','stringify','BOOLEAN','ENUM','voice','sequelize','exports','VIRTUAL','getDataValue','STRING','setDataValue','alias','name','long'];(function(_0x447dac,_0x34259d){var _0x1cd215=function(_0x14173b){while(--_0x14173b){_0x447dac['push'](_0x447dac['shift']());}};_0x1cd215(++_0x34259d);}(_0xf974,0x107));var _0x4f97=function(_0x22ac17,_0x53a678){_0x22ac17=_0x22ac17-0x0;var _0x182cf8=_0xf974[_0x22ac17];return _0x182cf8;};'use strict';var Sequelize=require(_0x4f97('0x0'));var _=require('lodash');module[_0x4f97('0x1')]={'name':{'type':Sequelize[_0x4f97('0x2')],'get':function(_0x4bf3ab){return this[_0x4f97('0x3')]('alias');}},'alias':{'type':Sequelize[_0x4f97('0x4')],'allowNull':![],'set':function(_0x35d212){this[_0x4f97('0x5')](_0x4f97('0x6'),_0x35d212?_0x35d212:this['getDataValue'](_0x4f97('0x7')));}},'type':{'type':Sequelize[_0x4f97('0x4')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x4f97('0x8')),'get':function(){if(this[_0x4f97('0x3')]('type')==='select'){return JSON[_0x4f97('0x9')](this[_0x4f97('0x3')](_0x4f97('0xa')));}else{return this[_0x4f97('0x3')](_0x4f97('0xa'));}},'set':function(_0x18613c){if(Array[_0x4f97('0xb')](_0x18613c)){this[_0x4f97('0x5')]('values',JSON[_0x4f97('0xc')](_0x18613c));}else{this[_0x4f97('0x5')]('values',_0x18613c);}}},'required':{'type':Sequelize[_0x4f97('0xd')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x4f97('0xd')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x4f97('0xe')](_0x4f97('0xf'))}};