9724b2c5ce71e189d68cd0edb2c33d83ef1cd8fb
[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 _0x6351=['TEXT','long','type','parse','values','isArray','BOOLEAN','ENUM','voice','sequelize','exports','VIRTUAL','setDataValue','alias','getDataValue','name','STRING'];(function(_0x41b29e,_0x34b288){var _0xacd517=function(_0x3318df){while(--_0x3318df){_0x41b29e['push'](_0x41b29e['shift']());}};_0xacd517(++_0x34b288);}(_0x6351,0x6f));var _0x1635=function(_0x470d13,_0x3f22fa){_0x470d13=_0x470d13-0x0;var _0x18cc32=_0x6351[_0x470d13];return _0x18cc32;};'use strict';var Sequelize=require(_0x1635('0x0'));var _=require('lodash');module[_0x1635('0x1')]={'name':{'type':Sequelize[_0x1635('0x2')],'get':function(_0xd53569){return this['getDataValue']('alias');}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x5a2844){this[_0x1635('0x3')](_0x1635('0x4'),_0x5a2844?_0x5a2844:this[_0x1635('0x5')](_0x1635('0x6')));}},'type':{'type':Sequelize[_0x1635('0x7')],'allowNull':![]},'values':{'type':Sequelize[_0x1635('0x8')](_0x1635('0x9')),'get':function(){if(this[_0x1635('0x5')](_0x1635('0xa'))==='select'){return JSON[_0x1635('0xb')](this[_0x1635('0x5')](_0x1635('0xc')));}else{return this[_0x1635('0x5')](_0x1635('0xc'));}},'set':function(_0x1df972){if(Array[_0x1635('0xd')](_0x1df972)){this['setDataValue'](_0x1635('0xc'),JSON['stringify'](_0x1df972));}else{this['setDataValue'](_0x1635('0xc'),_0x1df972);}}},'required':{'type':Sequelize[_0x1635('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0x1635('0xf')](_0x1635('0x10'))}};