Built motion from commit (unavailable).|2.5.30
[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 _0x1670=['long','type','select','values','isArray','setDataValue','stringify','BOOLEAN','ENUM','voice','sequelize','lodash','VIRTUAL','getDataValue','alias','STRING','name','TEXT'];(function(_0x2d5887,_0xace828){var _0x257084=function(_0x457e3a){while(--_0x457e3a){_0x2d5887['push'](_0x2d5887['shift']());}};_0x257084(++_0xace828);}(_0x1670,0x9a));var _0x0167=function(_0x2c70cf,_0x29dc93){_0x2c70cf=_0x2c70cf-0x0;var _0x155951=_0x1670[_0x2c70cf];return _0x155951;};'use strict';var Sequelize=require(_0x0167('0x0'));var _=require(_0x0167('0x1'));module['exports']={'name':{'type':Sequelize[_0x0167('0x2')],'get':function(_0x4dc6f6){return this[_0x0167('0x3')](_0x0167('0x4'));}},'alias':{'type':Sequelize[_0x0167('0x5')],'allowNull':![],'set':function(_0x6f87ae){this['setDataValue']('alias',_0x6f87ae?_0x6f87ae:this[_0x0167('0x3')](_0x0167('0x6')));}},'type':{'type':Sequelize[_0x0167('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x0167('0x7')](_0x0167('0x8')),'get':function(){if(this[_0x0167('0x3')](_0x0167('0x9'))===_0x0167('0xa')){return JSON['parse'](this['getDataValue'](_0x0167('0xb')));}else{return this[_0x0167('0x3')](_0x0167('0xb'));}},'set':function(_0x1632d4){if(Array[_0x0167('0xc')](_0x1632d4)){this[_0x0167('0xd')](_0x0167('0xb'),JSON[_0x0167('0xe')](_0x1632d4));}else{this[_0x0167('0xd')](_0x0167('0xb'),_0x1632d4);}}},'required':{'type':Sequelize[_0x0167('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x0167('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x0167('0x10')](_0x0167('0x11'))}};