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