b03bb0b0219ea60716ed185b065fa826413120b5
[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 _0x641b=['DATE','MM-DD-YYYY\x20HH:mm','toString','updatedAt','format','path','exports','VIRTUAL','getDataValue','value','STRING','setDataValue','membername','split','INTEGER'];(function(_0x41e958,_0x2bff6f){var _0x36c4f4=function(_0x22dc30){while(--_0x22dc30){_0x41e958['push'](_0x41e958['shift']());}};_0x36c4f4(++_0x2bff6f);}(_0x641b,0x140));var _0xb641=function(_0x1b0bae,_0x2668ed){_0x1b0bae=_0x1b0bae-0x0;var _0x11c058=_0x641b[_0x1b0bae];return _0x11c058;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');var path=require(_0xb641('0x0'));module[_0xb641('0x1')]={'format':{'type':Sequelize[_0xb641('0x2')],'get':function(){return this[_0xb641('0x3')](_0xb641('0x4'))?path['extname'](this['getDataValue'](_0xb641('0x4'))):undefined;}},'uniqueid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xb641('0x5')],'set':function(_0x923427){if(_0x923427){this[_0xb641('0x6')]('channel',_0x923427);this[_0xb641('0x6')](_0xb641('0x7'),_0x923427[_0xb641('0x8')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0xb641('0x5')]},'calleridnum':{'type':Sequelize[_0xb641('0x5')]},'calleridname':{'type':Sequelize[_0xb641('0x5')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0xb641('0x5')]},'context':{'type':Sequelize[_0xb641('0x5')]},'exten':{'type':Sequelize[_0xb641('0x5')]},'value':{'type':Sequelize[_0xb641('0x5')]},'type':{'type':Sequelize[_0xb641('0x5')]},'rating':{'type':Sequelize[_0xb641('0x9')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0xb641('0x5')]},'userDisposition':{'type':Sequelize[_0xb641('0x5')]},'createdAt':{'type':Sequelize[_0xb641('0xa')],'get':function(){return moment(this['getDataValue']('createdAt'))['format'](_0xb641('0xb'))[_0xb641('0xc')]();}},'updatedAt':{'type':Sequelize[_0xb641('0xa')],'get':function(){return moment(this[_0xb641('0x3')](_0xb641('0xd')))[_0xb641('0xe')](_0xb641('0xb'))[_0xb641('0xc')]();}}};