e2db3344a4360d558a68923d13aa50418afb2d31
[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 _0x7a7c=['getDataValue','value','extname','STRING','setDataValue','channel','membername','INTEGER','TEXT','NEW','BOOLEAN','DATE','createdAt','updatedAt','format','MM-DD-YYYY\x20HH:mm','sequelize','moment','path','exports','VIRTUAL'];(function(_0x575d3d,_0x1b92d7){var _0x49e231=function(_0x524fe4){while(--_0x524fe4){_0x575d3d['push'](_0x575d3d['shift']());}};_0x49e231(++_0x1b92d7);}(_0x7a7c,0xcd));var _0xc7a7=function(_0x50a2e6,_0x9fdfab){_0x50a2e6=_0x50a2e6-0x0;var _0x504a5d=_0x7a7c[_0x50a2e6];return _0x504a5d;};'use strict';var Sequelize=require(_0xc7a7('0x0'));var moment=require(_0xc7a7('0x1'));var path=require(_0xc7a7('0x2'));module[_0xc7a7('0x3')]={'format':{'type':Sequelize[_0xc7a7('0x4')],'get':function(){return this[_0xc7a7('0x5')](_0xc7a7('0x6'))?path[_0xc7a7('0x7')](this['getDataValue'](_0xc7a7('0x6'))):undefined;}},'uniqueid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xc7a7('0x8')],'set':function(_0x1e44bb){if(_0x1e44bb){this[_0xc7a7('0x9')](_0xc7a7('0xa'),_0x1e44bb);this[_0xc7a7('0x9')](_0xc7a7('0xb'),_0x1e44bb['split'](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0xc7a7('0x8')]},'calleridnum':{'type':Sequelize[_0xc7a7('0x8')]},'calleridname':{'type':Sequelize[_0xc7a7('0x8')]},'connectedlinenum':{'type':Sequelize[_0xc7a7('0x8')]},'connectedlinename':{'type':Sequelize[_0xc7a7('0x8')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0xc7a7('0x8')]},'exten':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0xc7a7('0x8')]},'type':{'type':Sequelize[_0xc7a7('0x8')]},'rating':{'type':Sequelize[_0xc7a7('0xc')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0xc7a7('0x8')]},'userDisposition':{'type':Sequelize['STRING']},'userSecondDisposition':{'type':Sequelize[_0xc7a7('0x8')]},'userThirdDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize[_0xc7a7('0xd')]},'transcribeName':{'type':Sequelize[_0xc7a7('0x8')]},'transcribeStatus':{'type':Sequelize[_0xc7a7('0x8')],'defaultValue':_0xc7a7('0xe')},'fileUri':{'type':Sequelize[_0xc7a7('0xd')]},'fileText':{'type':Sequelize[_0xc7a7('0xd')]},'failureReason':{'type':Sequelize[_0xc7a7('0xd')]},'sentiment':{'type':Sequelize[_0xc7a7('0x8')]},'sPositive':{'type':Sequelize['FLOAT']},'sNegative':{'type':Sequelize['FLOAT']},'sNeutral':{'type':Sequelize['FLOAT']},'sMixed':{'type':Sequelize['FLOAT']},'tempSentiment':{'type':Sequelize[_0xc7a7('0xf')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0xc7a7('0x10')],'get':function(){return moment(this[_0xc7a7('0x5')](_0xc7a7('0x11')))['format']('MM-DD-YYYY\x20HH:mm')['toString']();}},'updatedAt':{'type':Sequelize[_0xc7a7('0x10')],'get':function(){return moment(this[_0xc7a7('0x5')](_0xc7a7('0x12')))[_0xc7a7('0x13')](_0xc7a7('0x14'))['toString']();}}};