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