Built motion from commit (unavailable).|2.1.0
[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 _0x4d12=['talk:[queue]','sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','getDataValue','enterAt','diff','seconds','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[destination]'];(function(_0x3f51ab,_0x1652e8){var _0x36fbf0=function(_0x4ad5ae){while(--_0x4ad5ae){_0x3f51ab['push'](_0x3f51ab['shift']());}};_0x36fbf0(++_0x1652e8);}(_0x4d12,0x151));var _0x24d1=function(_0x15ab0d,_0x12e4b2){_0x15ab0d=_0x15ab0d-0x0;var _0x5ed23f=_0x4d12[_0x15ab0d];return _0x5ed23f;};'use strict';var Sequelize=require(_0x24d1('0x0'));var moment=require(_0x24d1('0x1'));module[_0x24d1('0x2')]={'channel':{'type':Sequelize[_0x24d1('0x3')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize['STRING'],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x24d1('0x4')},'duration':{'type':Sequelize[_0x24d1('0x5')]},'enterAt':{'type':Sequelize[_0x24d1('0x6')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x493644){var _0x110e47=moment(_0x493644);var _0x1ef64d=moment(this[_0x24d1('0x7')](_0x24d1('0x8')));var _0x124058=_0x110e47[_0x24d1('0x9')](_0x1ef64d,_0x24d1('0xa'));this[_0x24d1('0xb')]('exitAt',_0x493644);this['setDataValue'](_0x24d1('0xc'),_0x124058||null);}},'data1':{'type':Sequelize['STRING'],'comment':_0x24d1('0xd')},'data2':{'type':Sequelize[_0x24d1('0x3')],'comment':'talk:[start]'},'data3':{'type':Sequelize['STRING'],'comment':_0x24d1('0xe')},'data4':{'type':Sequelize['STRING'],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x24d1('0x3')],'comment':_0x24d1('0xf')},'role':{'type':Sequelize[_0x24d1('0x3')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize['STRING']}};