Built motion from commit (unavailable).|2.5.29
[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 _0x7a2c=['STRING','setDataValue','name','type','select','parse','values','isArray','stringify','BOOLEAN','ENUM','sequelize','exports','VIRTUAL','getDataValue','alias'];(function(_0x3e07f5,_0x399410){var _0x22d810=function(_0x36c4b2){while(--_0x36c4b2){_0x3e07f5['push'](_0x3e07f5['shift']());}};_0x22d810(++_0x399410);}(_0x7a2c,0x17b));var _0xc7a2=function(_0xe8c966,_0x332b6c){_0xe8c966=_0xe8c966-0x0;var _0x225e97=_0x7a2c[_0xe8c966];return _0x225e97;};'use strict';var Sequelize=require(_0xc7a2('0x0'));var _=require('lodash');module[_0xc7a2('0x1')]={'name':{'type':Sequelize[_0xc7a2('0x2')],'get':function(_0x409ec5){return this[_0xc7a2('0x3')](_0xc7a2('0x4'));}},'alias':{'type':Sequelize[_0xc7a2('0x5')],'allowNull':![],'set':function(_0x3f2b0d){this[_0xc7a2('0x6')]('alias',_0x3f2b0d?_0x3f2b0d:this[_0xc7a2('0x3')](_0xc7a2('0x7')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize['TEXT']('long'),'get':function(){if(this[_0xc7a2('0x3')](_0xc7a2('0x8'))===_0xc7a2('0x9')){return JSON[_0xc7a2('0xa')](this['getDataValue'](_0xc7a2('0xb')));}else{return this[_0xc7a2('0x3')](_0xc7a2('0xb'));}},'set':function(_0x558839){if(Array[_0xc7a2('0xc')](_0x558839)){this['setDataValue'](_0xc7a2('0xb'),JSON[_0xc7a2('0xd')](_0x558839));}else{this[_0xc7a2('0x6')]('values',_0x558839);}}},'required':{'type':Sequelize[_0xc7a2('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xc7a2('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xc7a2('0xf')]('voice')}};