Built motion from commit (unavailable).|2.5.26
[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 _0x1466=['split','INTEGER','FLOAT','BOOLEAN','format','toString','DATE','MM-DD-YYYY\x20HH:mm','sequelize','moment','exports','VIRTUAL','getDataValue','value','extname','STRING','channel','setDataValue','membername'];(function(_0x5c8b1e,_0x32e4e1){var _0x4647a9=function(_0x3465ce){while(--_0x3465ce){_0x5c8b1e['push'](_0x5c8b1e['shift']());}};_0x4647a9(++_0x32e4e1);}(_0x1466,0x15e));var _0x6146=function(_0xfd9600,_0x57069d){_0xfd9600=_0xfd9600-0x0;var _0x501cae=_0x1466[_0xfd9600];return _0x501cae;};'use strict';var Sequelize=require(_0x6146('0x0'));var moment=require(_0x6146('0x1'));var path=require('path');module[_0x6146('0x2')]={'format':{'type':Sequelize[_0x6146('0x3')],'get':function(){return this[_0x6146('0x4')](_0x6146('0x5'))?path[_0x6146('0x6')](this[_0x6146('0x4')]('value')):undefined;}},'uniqueid':{'type':Sequelize[_0x6146('0x7')]},'channel':{'type':Sequelize[_0x6146('0x7')],'set':function(_0x7c37ea){if(_0x7c37ea){this['setDataValue'](_0x6146('0x8'),_0x7c37ea);this[_0x6146('0x9')](_0x6146('0xa'),_0x7c37ea[_0x6146('0xb')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x6146('0x7')]},'connectedlinenum':{'type':Sequelize[_0x6146('0x7')]},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x6146('0x7')]},'context':{'type':Sequelize[_0x6146('0x7')]},'exten':{'type':Sequelize[_0x6146('0x7')]},'value':{'type':Sequelize[_0x6146('0x7')]},'type':{'type':Sequelize[_0x6146('0x7')]},'rating':{'type':Sequelize[_0x6146('0xc')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x6146('0x7')]},'userDisposition':{'type':Sequelize[_0x6146('0x7')]},'userSecondDisposition':{'type':Sequelize[_0x6146('0x7')]},'userThirdDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize['TEXT']},'transcribeName':{'type':Sequelize[_0x6146('0x7')]},'transcribeStatus':{'type':Sequelize['STRING'],'defaultValue':'NEW'},'fileUri':{'type':Sequelize['TEXT']},'fileText':{'type':Sequelize['TEXT']},'failureReason':{'type':Sequelize['TEXT']},'sentiment':{'type':Sequelize[_0x6146('0x7')]},'sPositive':{'type':Sequelize['FLOAT']},'sNegative':{'type':Sequelize[_0x6146('0xd')]},'sNeutral':{'type':Sequelize[_0x6146('0xd')]},'sMixed':{'type':Sequelize[_0x6146('0xd')]},'tempSentiment':{'type':Sequelize[_0x6146('0xe')],'defaultValue':![]},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x6146('0x4')]('createdAt'))[_0x6146('0xf')]('MM-DD-YYYY\x20HH:mm')[_0x6146('0x10')]();}},'updatedAt':{'type':Sequelize[_0x6146('0x11')],'get':function(){return moment(this[_0x6146('0x4')]('updatedAt'))[_0x6146('0xf')](_0x6146('0x12'))[_0x6146('0x10')]();}}};