54cee60490495a60251abb12ce556f9763df0627
[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 _0x0448=['exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[dial\x20string]','INTEGER','sequelize','moment','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','DATE','getDataValue','enterAt','seconds','setDataValue'];(function(_0x1a36a5,_0x746928){var _0x746243=function(_0x481966){while(--_0x481966){_0x1a36a5['push'](_0x1a36a5['shift']());}};_0x746243(++_0x746928);}(_0x0448,0x17c));var _0x8044=function(_0x4063a4,_0x19d730){_0x4063a4=_0x4063a4-0x0;var _0x17908d=_0x0448[_0x4063a4];return _0x17908d;};'use strict';var Sequelize=require(_0x8044('0x0'));var moment=require(_0x8044('0x1'));module[_0x8044('0x2')]={'channel':{'type':Sequelize[_0x8044('0x3')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0x8044('0x3')]},'type':{'type':Sequelize[_0x8044('0x3')],'defaultValue':_0x8044('0x4'),'comment':_0x8044('0x5')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0x8044('0x6')]},'exitAt':{'type':Sequelize[_0x8044('0x6')],'set':function(_0x7147b6){var _0x489893=moment(_0x7147b6);var _0x538651=moment(this[_0x8044('0x7')](_0x8044('0x8')));var _0x1881d1=_0x489893['diff'](_0x538651,_0x8044('0x9'));this[_0x8044('0xa')](_0x8044('0xb'),_0x7147b6);this[_0x8044('0xa')](_0x8044('0xc'),_0x1881d1>=0x0?_0x1881d1:null);}},'data1':{'type':Sequelize[_0x8044('0x3')],'comment':_0x8044('0xd')},'data2':{'type':Sequelize[_0x8044('0x3')],'comment':_0x8044('0xe')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0x8044('0x3')],'comment':_0x8044('0xf')},'data5':{'type':Sequelize[_0x8044('0x3')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0x8044('0x3')]},'internal':{'type':Sequelize[_0x8044('0x10')]},'uniqueid':{'type':Sequelize[_0x8044('0x3')]}};