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