48dff57dbdf8b0a0ab780994b503fa587a557b1a
[motion2.git] / server / api / memberReport / memberReport.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 _0x158e=['getDataValue','seconds','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[dial\x20string]','talk:[queue]','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE'];(function(_0x1e1752,_0x3afd75){var _0x534c29=function(_0x1fd161){while(--_0x1fd161){_0x1e1752['push'](_0x1e1752['shift']());}};_0x534c29(++_0x3afd75);}(_0x158e,0x144));var _0xe158=function(_0x3d10b7,_0x472959){_0x3d10b7=_0x3d10b7-0x0;var _0x335390=_0x158e[_0x3d10b7];return _0x335390;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');module[_0xe158('0x0')]={'channel':{'type':Sequelize[_0xe158('0x1')]},'membername':{'type':Sequelize[_0xe158('0x1')]},'interface':{'type':Sequelize[_0xe158('0x1')]},'type':{'type':Sequelize[_0xe158('0x1')],'defaultValue':_0xe158('0x2'),'comment':_0xe158('0x3')},'duration':{'type':Sequelize[_0xe158('0x4')]},'enterAt':{'type':Sequelize[_0xe158('0x5')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0xad1586){var _0x2f6332=moment(_0xad1586);var _0x483b94=moment(this[_0xe158('0x6')]('enterAt'));var _0x4d9904=_0x2f6332['diff'](_0x483b94,_0xe158('0x7'));this[_0xe158('0x8')](_0xe158('0x9'),_0xad1586);this[_0xe158('0x8')](_0xe158('0xa'),_0x4d9904>=0x0?_0x4d9904:null);}},'data1':{'type':Sequelize[_0xe158('0x1')],'comment':_0xe158('0xb')},'data2':{'type':Sequelize[_0xe158('0x1')],'comment':_0xe158('0xc')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0xe158('0x1')],'comment':_0xe158('0xd')},'data5':{'type':Sequelize[_0xe158('0x1')],'comment':_0xe158('0xe')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0xe158('0x4')]},'uniqueid':{'type':Sequelize[_0xe158('0x1')]}};