Built motion from commit (unavailable).|2.4.20
[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 _0x07d8=['VIRTUAL','getDataValue','value','extname','STRING','setDataValue','channel','membername','split','INTEGER','DATE','MM-DD-YYYY\x20HH:mm','toString','updatedAt','format','sequelize','moment','exports'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x07d8,0x12f));var _0x807d=function(_0x25ff4a,_0x423dd3){_0x25ff4a=_0x25ff4a-0x0;var _0x5a689b=_0x07d8[_0x25ff4a];return _0x5a689b;};'use strict';var Sequelize=require(_0x807d('0x0'));var moment=require(_0x807d('0x1'));var path=require('path');module[_0x807d('0x2')]={'format':{'type':Sequelize[_0x807d('0x3')],'get':function(){return this[_0x807d('0x4')](_0x807d('0x5'))?path[_0x807d('0x6')](this['getDataValue'](_0x807d('0x5'))):undefined;}},'uniqueid':{'type':Sequelize[_0x807d('0x7')]},'channel':{'type':Sequelize[_0x807d('0x7')],'set':function(_0xb001b7){if(_0xb001b7){this[_0x807d('0x8')](_0x807d('0x9'),_0xb001b7);this[_0x807d('0x8')](_0x807d('0xa'),_0xb001b7[_0x807d('0xb')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0x807d('0x7')]},'calleridnum':{'type':Sequelize[_0x807d('0x7')]},'calleridname':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x807d('0x7')]},'connectedlinename':{'type':Sequelize[_0x807d('0x7')]},'accountcode':{'type':Sequelize[_0x807d('0x7')]},'context':{'type':Sequelize[_0x807d('0x7')]},'exten':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x807d('0x7')]},'type':{'type':Sequelize[_0x807d('0x7')]},'rating':{'type':Sequelize[_0x807d('0xc')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x807d('0x7')]},'userDisposition':{'type':Sequelize[_0x807d('0x7')]},'createdAt':{'type':Sequelize[_0x807d('0xd')],'get':function(){return moment(this[_0x807d('0x4')]('createdAt'))['format'](_0x807d('0xe'))[_0x807d('0xf')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x807d('0x4')](_0x807d('0x10')))[_0x807d('0x11')](_0x807d('0xe'))['toString']();}}};