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