Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / voiceRecording / voiceRecording.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 _0xc698=['sequelize','moment','path','exports','VIRTUAL','getDataValue','value','STRING','setDataValue','channel','membername','format','toString','DATE','MM-DD-YYYY\x20HH:mm'];(function(_0x1064bc,_0x206f12){var _0x5edc45=function(_0x5087bd){while(--_0x5087bd){_0x1064bc['push'](_0x1064bc['shift']());}};_0x5edc45(++_0x206f12);}(_0xc698,0x10e));var _0x8c69=function(_0x5c351c,_0x2046d8){_0x5c351c=_0x5c351c-0x0;var _0x26f3b3=_0xc698[_0x5c351c];return _0x26f3b3;};'use strict';var Sequelize=require(_0x8c69('0x0'));var moment=require(_0x8c69('0x1'));var path=require(_0x8c69('0x2'));module[_0x8c69('0x3')]={'format':{'type':Sequelize[_0x8c69('0x4')],'get':function(){return this[_0x8c69('0x5')](_0x8c69('0x6'))?path['extname'](this[_0x8c69('0x5')]('value')):undefined;}},'uniqueid':{'type':Sequelize[_0x8c69('0x7')]},'channel':{'type':Sequelize[_0x8c69('0x7')],'set':function(_0x69a18a){if(_0x69a18a){this[_0x8c69('0x8')](_0x8c69('0x9'),_0x69a18a);this[_0x8c69('0x8')](_0x8c69('0xa'),_0x69a18a['split'](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0x8c69('0x7')]},'calleridnum':{'type':Sequelize[_0x8c69('0x7')]},'calleridname':{'type':Sequelize[_0x8c69('0x7')]},'connectedlinenum':{'type':Sequelize[_0x8c69('0x7')]},'connectedlinename':{'type':Sequelize[_0x8c69('0x7')]},'accountcode':{'type':Sequelize[_0x8c69('0x7')]},'context':{'type':Sequelize[_0x8c69('0x7')]},'exten':{'type':Sequelize[_0x8c69('0x7')]},'value':{'type':Sequelize[_0x8c69('0x7')]},'type':{'type':Sequelize['STRING']},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x8c69('0x7')]},'userDisposition':{'type':Sequelize[_0x8c69('0x7')]},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x8c69('0x5')]('createdAt'))[_0x8c69('0xb')]('MM-DD-YYYY\x20HH:mm')[_0x8c69('0xc')]();}},'updatedAt':{'type':Sequelize[_0x8c69('0xd')],'get':function(){return moment(this[_0x8c69('0x5')]('updatedAt'))[_0x8c69('0xb')](_0x8c69('0xe'))[_0x8c69('0xc')]();}}};