Built motion from commit 3c2ce842.|2.6.31
[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 _0x05b2=['seconds','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[queue]','INTEGER','sequelize','moment','exports','STRING','DEFAULT\x20PAUSE','DATE','getDataValue','enterAt','diff'];(function(_0x1057a3,_0x28d9b7){var _0x131cdb=function(_0x47a386){while(--_0x47a386){_0x1057a3['push'](_0x1057a3['shift']());}};_0x131cdb(++_0x28d9b7);}(_0x05b2,0x77));var _0x205b=function(_0x4b250a,_0x32a950){_0x4b250a=_0x4b250a-0x0;var _0x1ed247=_0x05b2[_0x4b250a];return _0x1ed247;};'use strict';var Sequelize=require(_0x205b('0x0'));var moment=require(_0x205b('0x1'));module[_0x205b('0x2')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0x205b('0x3')]},'interface':{'type':Sequelize[_0x205b('0x3')]},'type':{'type':Sequelize['STRING'],'defaultValue':_0x205b('0x4'),'comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x205b('0x5')],'set':function(_0x65929){var _0xbb4fe1=moment(_0x65929);var _0x2d6888=moment(this[_0x205b('0x6')](_0x205b('0x7')));var _0xd814cd=_0xbb4fe1[_0x205b('0x8')](_0x2d6888,_0x205b('0x9'));this[_0x205b('0xa')]('exitAt',_0x65929);this[_0x205b('0xa')](_0x205b('0xb'),_0xd814cd>=0x0?_0xd814cd:null);}},'data1':{'type':Sequelize[_0x205b('0x3')],'comment':_0x205b('0xc')},'data2':{'type':Sequelize[_0x205b('0x3')],'comment':_0x205b('0xd')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0x205b('0x3')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x205b('0x3')],'comment':_0x205b('0xe')},'role':{'type':Sequelize[_0x205b('0x3')]},'internal':{'type':Sequelize[_0x205b('0xf')]},'uniqueid':{'type':Sequelize[_0x205b('0x3')]}};