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