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