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