e0c0ef889ba85212f8ad074f7968f62f5cfab804
[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 _0xc529=['getDataValue','enterAt','seconds','setDataValue','exitAt','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE'];(function(_0x4d110c,_0x41eeb4){var _0x5bdf52=function(_0x5d4fb5){while(--_0x5d4fb5){_0x4d110c['push'](_0x4d110c['shift']());}};_0x5bdf52(++_0x41eeb4);}(_0xc529,0x109));var _0x9c52=function(_0x5b78e8,_0x55096b){_0x5b78e8=_0x5b78e8-0x0;var _0xf2c321=_0xc529[_0x5b78e8];return _0xf2c321;};'use strict';var Sequelize=require(_0x9c52('0x0'));var moment=require(_0x9c52('0x1'));module[_0x9c52('0x2')]={'channel':{'type':Sequelize[_0x9c52('0x3')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0x9c52('0x3')]},'type':{'type':Sequelize[_0x9c52('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x9c52('0x4')},'duration':{'type':Sequelize[_0x9c52('0x5')]},'enterAt':{'type':Sequelize[_0x9c52('0x6')]},'exitAt':{'type':Sequelize[_0x9c52('0x6')],'set':function(_0x3d470f){var _0x59fbe2=moment(_0x3d470f);var _0x564844=moment(this[_0x9c52('0x7')](_0x9c52('0x8')));var _0x316c5a=_0x59fbe2['diff'](_0x564844,_0x9c52('0x9'));this[_0x9c52('0xa')](_0x9c52('0xb'),_0x3d470f);this[_0x9c52('0xa')]('duration',_0x316c5a>=0x0?_0x316c5a:null);}},'data1':{'type':Sequelize[_0x9c52('0x3')],'comment':_0x9c52('0xc')},'data2':{'type':Sequelize[_0x9c52('0x3')],'comment':_0x9c52('0xd')},'data3':{'type':Sequelize[_0x9c52('0x3')],'comment':_0x9c52('0xe')},'data4':{'type':Sequelize[_0x9c52('0x3')],'comment':_0x9c52('0xf')},'data5':{'type':Sequelize[_0x9c52('0x3')],'comment':_0x9c52('0x10')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0x9c52('0x5')]},'uniqueid':{'type':Sequelize[_0x9c52('0x3')]}};