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