7ed5ab5c976d0fe115e48d20db980e92deac466d
[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 _0xc1e8=['toString','MM-DD-YYYY\x20HH:mm','sequelize','exports','VIRTUAL','getDataValue','value','extname','STRING','setDataValue','channel','membername','INTEGER','TEXT','FLOAT','BOOLEAN','DATE','createdAt','format'];(function(_0x4e8190,_0x1e485f){var _0x11b432=function(_0x370746){while(--_0x370746){_0x4e8190['push'](_0x4e8190['shift']());}};_0x11b432(++_0x1e485f);}(_0xc1e8,0x10c));var _0x8c1e=function(_0x17ac5b,_0x1a2d16){_0x17ac5b=_0x17ac5b-0x0;var _0x2dcec9=_0xc1e8[_0x17ac5b];return _0x2dcec9;};'use strict';var Sequelize=require(_0x8c1e('0x0'));var moment=require('moment');var path=require('path');module[_0x8c1e('0x1')]={'format':{'type':Sequelize[_0x8c1e('0x2')],'get':function(){return this[_0x8c1e('0x3')](_0x8c1e('0x4'))?path[_0x8c1e('0x5')](this['getDataValue'](_0x8c1e('0x4'))):undefined;}},'uniqueid':{'type':Sequelize[_0x8c1e('0x6')]},'channel':{'type':Sequelize[_0x8c1e('0x6')],'set':function(_0x543178){if(_0x543178){this[_0x8c1e('0x7')](_0x8c1e('0x8'),_0x543178);this[_0x8c1e('0x7')](_0x8c1e('0x9'),_0x543178['split'](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0x8c1e('0x6')]},'calleridnum':{'type':Sequelize[_0x8c1e('0x6')]},'calleridname':{'type':Sequelize[_0x8c1e('0x6')]},'connectedlinenum':{'type':Sequelize[_0x8c1e('0x6')]},'connectedlinename':{'type':Sequelize[_0x8c1e('0x6')]},'accountcode':{'type':Sequelize[_0x8c1e('0x6')]},'context':{'type':Sequelize[_0x8c1e('0x6')]},'exten':{'type':Sequelize[_0x8c1e('0x6')]},'value':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x8c1e('0x6')]},'rating':{'type':Sequelize[_0x8c1e('0xa')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x8c1e('0x6')]},'userDisposition':{'type':Sequelize[_0x8c1e('0x6')]},'location':{'type':Sequelize[_0x8c1e('0xb')]},'transcribeName':{'type':Sequelize['STRING']},'transcribeStatus':{'type':Sequelize[_0x8c1e('0x6')],'defaultValue':'NEW'},'fileUri':{'type':Sequelize[_0x8c1e('0xb')]},'fileText':{'type':Sequelize[_0x8c1e('0xb')]},'failureReason':{'type':Sequelize[_0x8c1e('0xb')]},'sentiment':{'type':Sequelize[_0x8c1e('0x6')]},'sPositive':{'type':Sequelize[_0x8c1e('0xc')]},'sNegative':{'type':Sequelize['FLOAT']},'sNeutral':{'type':Sequelize[_0x8c1e('0xc')]},'sMixed':{'type':Sequelize[_0x8c1e('0xc')]},'tempSentiment':{'type':Sequelize[_0x8c1e('0xd')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0x8c1e('0xe')],'get':function(){return moment(this['getDataValue'](_0x8c1e('0xf')))[_0x8c1e('0x10')]('MM-DD-YYYY\x20HH:mm')[_0x8c1e('0x11')]();}},'updatedAt':{'type':Sequelize[_0x8c1e('0xe')],'get':function(){return moment(this[_0x8c1e('0x3')]('updatedAt'))[_0x8c1e('0x10')](_0x8c1e('0x12'))[_0x8c1e('0x11')]();}}};