8ac9caad17cbf14efc4ebfe1344466154ddc2185
[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 _0x709a=['seconds','exitAt','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','getDataValue','enterAt'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x709a,0x75));var _0xa709=function(_0x46c163,_0x5c5488){_0x46c163=_0x46c163-0x0;var _0x30e117=_0x709a[_0x46c163];return _0x30e117;};'use strict';var Sequelize=require(_0xa709('0x0'));var moment=require(_0xa709('0x1'));module[_0xa709('0x2')]={'channel':{'type':Sequelize[_0xa709('0x3')]},'membername':{'type':Sequelize[_0xa709('0x3')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xa709('0x3')],'defaultValue':_0xa709('0x4'),'comment':_0xa709('0x5')},'duration':{'type':Sequelize[_0xa709('0x6')]},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x106ef8){var _0x438d67=moment(_0x106ef8);var _0x306e06=moment(this[_0xa709('0x7')](_0xa709('0x8')));var _0x4343d1=_0x438d67['diff'](_0x306e06,_0xa709('0x9'));this['setDataValue'](_0xa709('0xa'),_0x106ef8);this[_0xa709('0xb')](_0xa709('0xc'),_0x4343d1||null);}},'data1':{'type':Sequelize[_0xa709('0x3')],'comment':_0xa709('0xd')},'data2':{'type':Sequelize['STRING'],'comment':_0xa709('0xe')},'data3':{'type':Sequelize[_0xa709('0x3')],'comment':_0xa709('0xf')},'data4':{'type':Sequelize[_0xa709('0x3')],'comment':_0xa709('0x10')},'data5':{'type':Sequelize[_0xa709('0x3')],'comment':_0xa709('0x11')},'role':{'type':Sequelize[_0xa709('0x3')]},'internal':{'type':Sequelize[_0xa709('0x6')]},'uniqueid':{'type':Sequelize[_0xa709('0x3')]}};