Built motion from commit (unavailable).|2.5.21
[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 _0x96aa=['voice','sequelize','lodash','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT','long','type','select','parse','values','BOOLEAN','ENUM'];(function(_0x5bbf2f,_0x1f6c77){var _0x286fc9=function(_0x18057d){while(--_0x18057d){_0x5bbf2f['push'](_0x5bbf2f['shift']());}};_0x286fc9(++_0x1f6c77);}(_0x96aa,0x67));var _0xa96a=function(_0x3de6e4,_0x14937d){_0x3de6e4=_0x3de6e4-0x0;var _0x35e4c2=_0x96aa[_0x3de6e4];return _0x35e4c2;};'use strict';var Sequelize=require(_0xa96a('0x0'));var _=require(_0xa96a('0x1'));module['exports']={'name':{'type':Sequelize[_0xa96a('0x2')],'get':function(_0x32bff8){return this[_0xa96a('0x3')](_0xa96a('0x4'));}},'alias':{'type':Sequelize[_0xa96a('0x5')],'allowNull':![],'set':function(_0x4911c8){this[_0xa96a('0x6')](_0xa96a('0x4'),_0x4911c8?_0x4911c8:this['getDataValue'](_0xa96a('0x7')));}},'type':{'type':Sequelize[_0xa96a('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0xa96a('0x8')](_0xa96a('0x9')),'get':function(){if(this[_0xa96a('0x3')](_0xa96a('0xa'))===_0xa96a('0xb')){return JSON[_0xa96a('0xc')](this[_0xa96a('0x3')](_0xa96a('0xd')));}else{return this[_0xa96a('0x3')]('values');}},'set':function(_0x33b786){if(Array['isArray'](_0x33b786)){this[_0xa96a('0x6')](_0xa96a('0xd'),JSON['stringify'](_0x33b786));}else{this[_0xa96a('0x6')](_0xa96a('0xd'),_0x33b786);}}},'required':{'type':Sequelize[_0xa96a('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xa96a('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xa96a('0xf')](_0xa96a('0x10'))}};