Built motion from commit e6806ed6.|2.6.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 _0xb06b=['INTEGER','DATE','getDataValue','enterAt','diff','seconds','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0xb06b,0x14b));var _0xbb06=function(_0xad7c74,_0x1328bc){_0xad7c74=_0xad7c74-0x0;var _0x1c2f7d=_0xb06b[_0xad7c74];return _0x1c2f7d;};'use strict';var Sequelize=require(_0xbb06('0x0'));var moment=require(_0xbb06('0x1'));module['exports']={'channel':{'type':Sequelize[_0xbb06('0x2')]},'membername':{'type':Sequelize[_0xbb06('0x2')]},'interface':{'type':Sequelize[_0xbb06('0x2')]},'type':{'type':Sequelize['STRING'],'defaultValue':_0xbb06('0x3'),'comment':_0xbb06('0x4')},'duration':{'type':Sequelize[_0xbb06('0x5')]},'enterAt':{'type':Sequelize[_0xbb06('0x6')]},'exitAt':{'type':Sequelize[_0xbb06('0x6')],'set':function(_0x28b398){var _0x3dc38c=moment(_0x28b398);var _0x25b2e2=moment(this[_0xbb06('0x7')](_0xbb06('0x8')));var _0x890955=_0x3dc38c[_0xbb06('0x9')](_0x25b2e2,_0xbb06('0xa'));this['setDataValue']('exitAt',_0x28b398);this[_0xbb06('0xb')](_0xbb06('0xc'),_0x890955>=0x0?_0x890955:null);}},'data1':{'type':Sequelize[_0xbb06('0x2')],'comment':_0xbb06('0xd')},'data2':{'type':Sequelize['STRING'],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0xbb06('0x2')],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0xbb06('0x2')],'comment':_0xbb06('0xe')},'data5':{'type':Sequelize['STRING'],'comment':_0xbb06('0xf')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize['STRING']}};