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