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