ed340cdfb67396d5b8db21d4cfccf65970751f8a
[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 _0x49e9=['voice','sequelize','lodash','exports','VIRTUAL','alias','setDataValue','STRING','TEXT','long','getDataValue','select','parse','values','isArray','BOOLEAN'];(function(_0x11a540,_0x547bc5){var _0x3c15fe=function(_0x393f75){while(--_0x393f75){_0x11a540['push'](_0x11a540['shift']());}};_0x3c15fe(++_0x547bc5);}(_0x49e9,0x91));var _0x949e=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x49e9[_0x20a584];return _0x4b41a8;};'use strict';var Sequelize=require(_0x949e('0x0'));var _=require(_0x949e('0x1'));module[_0x949e('0x2')]={'name':{'type':Sequelize[_0x949e('0x3')],'get':function(_0x153d7d){return this['getDataValue'](_0x949e('0x4'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0xa7f5d8){this[_0x949e('0x5')](_0x949e('0x4'),_0xa7f5d8?_0xa7f5d8:this['getDataValue']('name'));}},'type':{'type':Sequelize[_0x949e('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0x949e('0x7')](_0x949e('0x8')),'get':function(){if(this[_0x949e('0x9')]('type')===_0x949e('0xa')){return JSON[_0x949e('0xb')](this[_0x949e('0x9')]('values'));}else{return this[_0x949e('0x9')](_0x949e('0xc'));}},'set':function(_0x1c3665){if(Array[_0x949e('0xd')](_0x1c3665)){this['setDataValue']('values',JSON['stringify'](_0x1c3665));}else{this[_0x949e('0x5')](_0x949e('0xc'),_0x1c3665);}}},'required':{'type':Sequelize[_0x949e('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x949e('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x949e('0xf'))}};