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