f4f77958c33da758fc55faea0eb9146cdc4b403a
[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 _0x715d=['duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','sequelize','moment','STRING','DEFAULT\x20PAUSE','INTEGER','DATE','diff','seconds','setDataValue'];(function(_0x335202,_0x16d8a7){var _0x93ca72=function(_0x3074a1){while(--_0x3074a1){_0x335202['push'](_0x335202['shift']());}};_0x93ca72(++_0x16d8a7);}(_0x715d,0x1a9));var _0xd715=function(_0x2405bf,_0x56e5a5){_0x2405bf=_0x2405bf-0x0;var _0x861ee4=_0x715d[_0x2405bf];return _0x861ee4;};'use strict';var Sequelize=require(_0xd715('0x0'));var moment=require(_0xd715('0x1'));module['exports']={'channel':{'type':Sequelize[_0xd715('0x2')]},'membername':{'type':Sequelize[_0xd715('0x2')]},'interface':{'type':Sequelize[_0xd715('0x2')]},'type':{'type':Sequelize[_0xd715('0x2')],'defaultValue':_0xd715('0x3'),'comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0xd715('0x4')]},'enterAt':{'type':Sequelize[_0xd715('0x5')]},'exitAt':{'type':Sequelize[_0xd715('0x5')],'set':function(_0x4aa96f){var _0x26678c=moment(_0x4aa96f);var _0x5c9c04=moment(this['getDataValue']('enterAt'));var _0x2d98d7=_0x26678c[_0xd715('0x6')](_0x5c9c04,_0xd715('0x7'));this[_0xd715('0x8')]('exitAt',_0x4aa96f);this[_0xd715('0x8')](_0xd715('0x9'),_0x2d98d7>=0x0?_0x2d98d7:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0xd715('0xa')},'data2':{'type':Sequelize[_0xd715('0x2')],'comment':_0xd715('0xb')},'data3':{'type':Sequelize[_0xd715('0x2')],'comment':_0xd715('0xc')},'data4':{'type':Sequelize[_0xd715('0x2')],'comment':_0xd715('0xd')},'data5':{'type':Sequelize[_0xd715('0x2')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0xd715('0x2')]},'internal':{'type':Sequelize[_0xd715('0x4')]},'uniqueid':{'type':Sequelize[_0xd715('0x2')]}};