Built motion from commit (unavailable).|2.5.21
[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 _0xd62d=['exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','getDataValue','enterAt','diff','seconds','setDataValue','duration','talk:[start]','talk:[destination]','talk:[queue]','sequelize','moment'];(function(_0x169eb5,_0xa19793){var _0x25ce90=function(_0x1df5c7){while(--_0x1df5c7){_0x169eb5['push'](_0x169eb5['shift']());}};_0x25ce90(++_0xa19793);}(_0xd62d,0x18e));var _0xdd62=function(_0x281fd5,_0xbdd3d9){_0x281fd5=_0x281fd5-0x0;var _0x5afedc=_0xd62d[_0x281fd5];return _0x5afedc;};'use strict';var Sequelize=require(_0xdd62('0x0'));var moment=require(_0xdd62('0x1'));module[_0xdd62('0x2')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xdd62('0x3')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xdd62('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0xdd62('0x4')},'duration':{'type':Sequelize[_0xdd62('0x5')]},'enterAt':{'type':Sequelize[_0xdd62('0x6')]},'exitAt':{'type':Sequelize[_0xdd62('0x6')],'set':function(_0x2acffc){var _0x1f0054=moment(_0x2acffc);var _0x54cc17=moment(this[_0xdd62('0x7')](_0xdd62('0x8')));var _0x28a9a5=_0x1f0054[_0xdd62('0x9')](_0x54cc17,_0xdd62('0xa'));this['setDataValue']('exitAt',_0x2acffc);this[_0xdd62('0xb')](_0xdd62('0xc'),_0x28a9a5||null);}},'data1':{'type':Sequelize[_0xdd62('0x3')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0xdd62('0x3')],'comment':_0xdd62('0xd')},'data3':{'type':Sequelize[_0xdd62('0x3')],'comment':_0xdd62('0xe')},'data4':{'type':Sequelize[_0xdd62('0x3')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0xdd62('0x3')],'comment':_0xdd62('0xf')},'role':{'type':Sequelize[_0xdd62('0x3')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0xdd62('0x3')]}};