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