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