Built motion from commit 5b761a7b.|2.5.36
[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 _0x5c12=['seconds','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[queue]','moment','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','diff'];(function(_0x352859,_0x3e9ce2){var _0x52807c=function(_0x4aa55f){while(--_0x4aa55f){_0x352859['push'](_0x352859['shift']());}};_0x52807c(++_0x3e9ce2);}(_0x5c12,0x188));var _0x25c1=function(_0x588011,_0x5e9d11){_0x588011=_0x588011-0x0;var _0x3b3773=_0x5c12[_0x588011];return _0x3b3773;};'use strict';var Sequelize=require('sequelize');var moment=require(_0x25c1('0x0'));module[_0x25c1('0x1')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0x25c1('0x2')]},'interface':{'type':Sequelize[_0x25c1('0x2')]},'type':{'type':Sequelize[_0x25c1('0x2')],'defaultValue':_0x25c1('0x3'),'comment':_0x25c1('0x4')},'duration':{'type':Sequelize[_0x25c1('0x5')]},'enterAt':{'type':Sequelize[_0x25c1('0x6')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x204287){var _0x42ac16=moment(_0x204287);var _0x382922=moment(this['getDataValue']('enterAt'));var _0x24981c=_0x42ac16[_0x25c1('0x7')](_0x382922,_0x25c1('0x8'));this[_0x25c1('0x9')](_0x25c1('0xa'),_0x204287);this['setDataValue'](_0x25c1('0xb'),_0x24981c||null);}},'data1':{'type':Sequelize[_0x25c1('0x2')],'comment':_0x25c1('0xc')},'data2':{'type':Sequelize[_0x25c1('0x2')],'comment':_0x25c1('0xd')},'data3':{'type':Sequelize['STRING'],'comment':_0x25c1('0xe')},'data4':{'type':Sequelize[_0x25c1('0x2')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x25c1('0x2')],'comment':_0x25c1('0xf')},'role':{'type':Sequelize[_0x25c1('0x2')]},'internal':{'type':Sequelize[_0x25c1('0x5')]},'uniqueid':{'type':Sequelize['STRING']}};