Built motion from commit (unavailable).|2.5.2
[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 _0xea86=['INTEGER','DATE','getDataValue','seconds','setDataValue','duration','talk:[start]','talk:[dial\x20string]','talk:[queue]','sequelize','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING'];(function(_0x178e48,_0x3c9509){var _0x440d7e=function(_0xc2f8a0){while(--_0xc2f8a0){_0x178e48['push'](_0x178e48['shift']());}};_0x440d7e(++_0x3c9509);}(_0xea86,0x6b));var _0x6ea8=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0xea86[_0xa464c9];return _0x3d73c4;};'use strict';var Sequelize=require(_0x6ea8('0x0'));var moment=require('moment');module[_0x6ea8('0x1')]={'channel':{'type':Sequelize[_0x6ea8('0x2')]},'membername':{'type':Sequelize[_0x6ea8('0x2')]},'interface':{'type':Sequelize[_0x6ea8('0x2')]},'type':{'type':Sequelize['STRING'],'defaultValue':_0x6ea8('0x3'),'comment':_0x6ea8('0x4')},'duration':{'type':Sequelize[_0x6ea8('0x5')]},'enterAt':{'type':Sequelize[_0x6ea8('0x6')]},'exitAt':{'type':Sequelize[_0x6ea8('0x6')],'set':function(_0x27450a){var _0x431e1d=moment(_0x27450a);var _0xbc4cbf=moment(this[_0x6ea8('0x7')]('enterAt'));var _0x4f1665=_0x431e1d['diff'](_0xbc4cbf,_0x6ea8('0x8'));this[_0x6ea8('0x9')]('exitAt',_0x27450a);this[_0x6ea8('0x9')](_0x6ea8('0xa'),_0x4f1665||null);}},'data1':{'type':Sequelize[_0x6ea8('0x2')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize['STRING'],'comment':_0x6ea8('0xb')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0x6ea8('0x2')],'comment':_0x6ea8('0xc')},'data5':{'type':Sequelize[_0x6ea8('0x2')],'comment':_0x6ea8('0xd')},'role':{'type':Sequelize[_0x6ea8('0x2')]},'internal':{'type':Sequelize[_0x6ea8('0x5')]},'uniqueid':{'type':Sequelize[_0x6ea8('0x2')]}};