Built motion from commit 511216ff.|2.6.34
[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 _0xa965=['exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','getDataValue','enterAt','diff','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[queue]','sequelize','moment'];(function(_0x268cb2,_0x887ba6){var _0x24c29e=function(_0x5af7d8){while(--_0x5af7d8){_0x268cb2['push'](_0x268cb2['shift']());}};_0x24c29e(++_0x887ba6);}(_0xa965,0x97));var _0x5a96=function(_0x14ed4e,_0x3dcf54){_0x14ed4e=_0x14ed4e-0x0;var _0x5c3d8a=_0xa965[_0x14ed4e];return _0x5c3d8a;};'use strict';var Sequelize=require(_0x5a96('0x0'));var moment=require(_0x5a96('0x1'));module[_0x5a96('0x2')]={'channel':{'type':Sequelize[_0x5a96('0x3')]},'membername':{'type':Sequelize[_0x5a96('0x3')]},'interface':{'type':Sequelize[_0x5a96('0x3')]},'type':{'type':Sequelize['STRING'],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x5a96('0x4')},'duration':{'type':Sequelize[_0x5a96('0x5')]},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x5a96('0x6')],'set':function(_0x2eba8a){var _0x5ca902=moment(_0x2eba8a);var _0x14d9f0=moment(this[_0x5a96('0x7')](_0x5a96('0x8')));var _0x2341d0=_0x5ca902[_0x5a96('0x9')](_0x14d9f0,'seconds');this[_0x5a96('0xa')](_0x5a96('0xb'),_0x2eba8a);this['setDataValue'](_0x5a96('0xc'),_0x2341d0>=0x0?_0x2341d0:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0x5a96('0xd')},'data2':{'type':Sequelize[_0x5a96('0x3')],'comment':_0x5a96('0xe')},'data3':{'type':Sequelize[_0x5a96('0x3')],'comment':_0x5a96('0xf')},'data4':{'type':Sequelize[_0x5a96('0x3')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x5a96('0x3')],'comment':_0x5a96('0x10')},'role':{'type':Sequelize[_0x5a96('0x3')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0x5a96('0x3')]}};