b7ce8a899bfa6c11d101a4ae5f463ffad6fe7698
[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 _0x0f5a=['moment','exports','STRING','DEFAULT\x20PAUSE','INTEGER','DATE','getDataValue','enterAt','diff','setDataValue','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[dial\x20string]','talk:[queue]'];(function(_0xec7cf7,_0x10e706){var _0x1e108c=function(_0x4982f9){while(--_0x4982f9){_0xec7cf7['push'](_0xec7cf7['shift']());}};_0x1e108c(++_0x10e706);}(_0x0f5a,0x1c0));var _0xa0f5=function(_0x414ff1,_0xf0462b){_0x414ff1=_0x414ff1-0x0;var _0x29c53f=_0x0f5a[_0x414ff1];return _0x29c53f;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xa0f5('0x0'));module[_0xa0f5('0x1')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xa0f5('0x2')]},'interface':{'type':Sequelize[_0xa0f5('0x2')]},'type':{'type':Sequelize[_0xa0f5('0x2')],'defaultValue':_0xa0f5('0x3'),'comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0xa0f5('0x4')]},'enterAt':{'type':Sequelize[_0xa0f5('0x5')]},'exitAt':{'type':Sequelize[_0xa0f5('0x5')],'set':function(_0x458ba4){var _0x4d2c7f=moment(_0x458ba4);var _0x20edd7=moment(this[_0xa0f5('0x6')](_0xa0f5('0x7')));var _0x726148=_0x4d2c7f[_0xa0f5('0x8')](_0x20edd7,'seconds');this[_0xa0f5('0x9')]('exitAt',_0x458ba4);this[_0xa0f5('0x9')]('duration',_0x726148>=0x0?_0x726148:null);}},'data1':{'type':Sequelize[_0xa0f5('0x2')],'comment':_0xa0f5('0xa')},'data2':{'type':Sequelize[_0xa0f5('0x2')],'comment':_0xa0f5('0xb')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0xa0f5('0x2')],'comment':_0xa0f5('0xc')},'data5':{'type':Sequelize['STRING'],'comment':_0xa0f5('0xd')},'role':{'type':Sequelize[_0xa0f5('0x2')]},'internal':{'type':Sequelize[_0xa0f5('0x4')]},'uniqueid':{'type':Sequelize[_0xa0f5('0x2')]}};