Built motion from commit (unavailable).|2.5.3
[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 _0xe716=['toString','DATE','updatedAt','format','sequelize','moment','path','exports','VIRTUAL','getDataValue','value','extname','STRING','channel','setDataValue','membername','split','INTEGER','TEXT','FLOAT','createdAt','MM-DD-YYYY\x20HH:mm'];(function(_0x1fb4a0,_0x48a602){var _0x1094e7=function(_0x25fcd5){while(--_0x25fcd5){_0x1fb4a0['push'](_0x1fb4a0['shift']());}};_0x1094e7(++_0x48a602);}(_0xe716,0x14e));var _0x6e71=function(_0x37b54d,_0xc4cfc9){_0x37b54d=_0x37b54d-0x0;var _0x40a7f9=_0xe716[_0x37b54d];return _0x40a7f9;};'use strict';var Sequelize=require(_0x6e71('0x0'));var moment=require(_0x6e71('0x1'));var path=require(_0x6e71('0x2'));module[_0x6e71('0x3')]={'format':{'type':Sequelize[_0x6e71('0x4')],'get':function(){return this[_0x6e71('0x5')](_0x6e71('0x6'))?path[_0x6e71('0x7')](this[_0x6e71('0x5')](_0x6e71('0x6'))):undefined;}},'uniqueid':{'type':Sequelize[_0x6e71('0x8')]},'channel':{'type':Sequelize[_0x6e71('0x8')],'set':function(_0x10a85d){if(_0x10a85d){this['setDataValue'](_0x6e71('0x9'),_0x10a85d);this[_0x6e71('0xa')](_0x6e71('0xb'),_0x10a85d[_0x6e71('0xc')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0x6e71('0x8')]},'calleridnum':{'type':Sequelize[_0x6e71('0x8')]},'calleridname':{'type':Sequelize[_0x6e71('0x8')]},'connectedlinenum':{'type':Sequelize[_0x6e71('0x8')]},'connectedlinename':{'type':Sequelize[_0x6e71('0x8')]},'accountcode':{'type':Sequelize[_0x6e71('0x8')]},'context':{'type':Sequelize[_0x6e71('0x8')]},'exten':{'type':Sequelize[_0x6e71('0x8')]},'value':{'type':Sequelize[_0x6e71('0x8')]},'type':{'type':Sequelize[_0x6e71('0x8')]},'rating':{'type':Sequelize[_0x6e71('0xd')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x6e71('0x8')]},'userDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize[_0x6e71('0xe')]},'transcribeName':{'type':Sequelize[_0x6e71('0x8')]},'transcribeStatus':{'type':Sequelize[_0x6e71('0x8')],'defaultValue':'NEW'},'fileUri':{'type':Sequelize[_0x6e71('0xe')]},'fileText':{'type':Sequelize[_0x6e71('0xe')]},'failureReason':{'type':Sequelize[_0x6e71('0xe')]},'sentiment':{'type':Sequelize[_0x6e71('0x8')]},'sPositive':{'type':Sequelize[_0x6e71('0xf')]},'sNegative':{'type':Sequelize[_0x6e71('0xf')]},'sNeutral':{'type':Sequelize['FLOAT']},'sMixed':{'type':Sequelize[_0x6e71('0xf')]},'tempSentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x6e71('0x5')](_0x6e71('0x10')))['format'](_0x6e71('0x11'))[_0x6e71('0x12')]();}},'updatedAt':{'type':Sequelize[_0x6e71('0x13')],'get':function(){return moment(this[_0x6e71('0x5')](_0x6e71('0x14')))[_0x6e71('0x15')](_0x6e71('0x11'))[_0x6e71('0x12')]();}}};