96a265797c4ac0e6e7d7475302c6ff45253b147e
[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 _0x6a84=['LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt','diff','seconds','exitAt','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[destination]','talk:[queue]','STRING','DEFAULT\x20PAUSE'];(function(_0x70fd53,_0x2a95a6){var _0x4b71c5=function(_0x4b349d){while(--_0x4b349d){_0x70fd53['push'](_0x70fd53['shift']());}};_0x4b71c5(++_0x2a95a6);}(_0x6a84,0x6e));var _0x46a8=function(_0x16b9ed,_0x56517a){_0x16b9ed=_0x16b9ed-0x0;var _0x66b1f8=_0x6a84[_0x16b9ed];return _0x66b1f8;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');module['exports']={'channel':{'type':Sequelize[_0x46a8('0x0')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x46a8('0x0')],'defaultValue':_0x46a8('0x1'),'comment':_0x46a8('0x2')},'duration':{'type':Sequelize[_0x46a8('0x3')]},'enterAt':{'type':Sequelize[_0x46a8('0x4')]},'exitAt':{'type':Sequelize[_0x46a8('0x4')],'set':function(_0x37d93e){var _0x578452=moment(_0x37d93e);var _0x17e342=moment(this['getDataValue'](_0x46a8('0x5')));var _0x1c6ad8=_0x578452[_0x46a8('0x6')](_0x17e342,_0x46a8('0x7'));this['setDataValue'](_0x46a8('0x8'),_0x37d93e);this[_0x46a8('0x9')](_0x46a8('0xa'),_0x1c6ad8||null);}},'data1':{'type':Sequelize[_0x46a8('0x0')],'comment':_0x46a8('0xb')},'data2':{'type':Sequelize[_0x46a8('0x0')],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0x46a8('0x0')],'comment':_0x46a8('0xc')},'data4':{'type':Sequelize['STRING'],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize['STRING'],'comment':_0x46a8('0xd')},'role':{'type':Sequelize[_0x46a8('0x0')]},'internal':{'type':Sequelize[_0x46a8('0x3')]},'uniqueid':{'type':Sequelize[_0x46a8('0x0')]}};