b65553b8c8ae9c1151ce6d05318b661906fa2b5d
[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 _0xe6fe=['channel','membername','TEXT','FLOAT','DATE','format','MM-DD-YYYY\x20HH:mm','toString','updatedAt','moment','VIRTUAL','getDataValue','value','extname','STRING','setDataValue'];(function(_0x26f584,_0x3f40c0){var _0x1038d2=function(_0x3d5444){while(--_0x3d5444){_0x26f584['push'](_0x26f584['shift']());}};_0x1038d2(++_0x3f40c0);}(_0xe6fe,0x129));var _0xee6f=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xe6fe[_0x14add3];return _0x4a174f;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xee6f('0x0'));var path=require('path');module['exports']={'format':{'type':Sequelize[_0xee6f('0x1')],'get':function(){return this[_0xee6f('0x2')](_0xee6f('0x3'))?path[_0xee6f('0x4')](this[_0xee6f('0x2')](_0xee6f('0x3'))):undefined;}},'uniqueid':{'type':Sequelize[_0xee6f('0x5')]},'channel':{'type':Sequelize[_0xee6f('0x5')],'set':function(_0x82847a){if(_0x82847a){this[_0xee6f('0x6')](_0xee6f('0x7'),_0x82847a);this['setDataValue'](_0xee6f('0x8'),_0x82847a['split'](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0xee6f('0x5')]},'calleridname':{'type':Sequelize[_0xee6f('0x5')]},'connectedlinenum':{'type':Sequelize[_0xee6f('0x5')]},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0xee6f('0x5')]},'value':{'type':Sequelize[_0xee6f('0x5')]},'type':{'type':Sequelize['STRING']},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize['STRING']},'userDisposition':{'type':Sequelize['STRING']},'userSecondDisposition':{'type':Sequelize[_0xee6f('0x5')]},'userThirdDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize[_0xee6f('0x9')]},'transcribeName':{'type':Sequelize['STRING']},'transcribeStatus':{'type':Sequelize['STRING'],'defaultValue':'NEW'},'fileUri':{'type':Sequelize[_0xee6f('0x9')]},'fileText':{'type':Sequelize[_0xee6f('0x9')]},'failureReason':{'type':Sequelize[_0xee6f('0x9')]},'sentiment':{'type':Sequelize['STRING']},'sPositive':{'type':Sequelize[_0xee6f('0xa')]},'sNegative':{'type':Sequelize[_0xee6f('0xa')]},'sNeutral':{'type':Sequelize[_0xee6f('0xa')]},'sMixed':{'type':Sequelize['FLOAT']},'tempSentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'createdAt':{'type':Sequelize[_0xee6f('0xb')],'get':function(){return moment(this[_0xee6f('0x2')]('createdAt'))[_0xee6f('0xc')](_0xee6f('0xd'))[_0xee6f('0xe')]();}},'updatedAt':{'type':Sequelize[_0xee6f('0xb')],'get':function(){return moment(this[_0xee6f('0x2')](_0xee6f('0xf')))[_0xee6f('0xc')](_0xee6f('0xd'))[_0xee6f('0xe')]();}}};