1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xc68d=['talk:[start]','talk:[destination]','talk:[dial\x20string]','moment','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt','diff','exitAt','setDataValue','duration'];(function(_0x44687a,_0x892453){var _0xdc26b8=function(_0x5423d9){while(--_0x5423d9){_0x44687a['push'](_0x44687a['shift']());}};_0xdc26b8(++_0x892453);}(_0xc68d,0x17a));var _0xdc68=function(_0x48c14f,_0x261b85){_0x48c14f=_0x48c14f-0x0;var _0x1e3260=_0xc68d[_0x48c14f];return _0x1e3260;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xdc68('0x0'));module[_0xdc68('0x1')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0xdc68('0x2')]},'type':{'type':Sequelize[_0xdc68('0x2')],'defaultValue':_0xdc68('0x3'),'comment':_0xdc68('0x4')},'duration':{'type':Sequelize[_0xdc68('0x5')]},'enterAt':{'type':Sequelize[_0xdc68('0x6')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x36f545){var _0x2709db=moment(_0x36f545);var _0x9507b2=moment(this['getDataValue'](_0xdc68('0x7')));var _0x40e8eb=_0x2709db[_0xdc68('0x8')](_0x9507b2,'seconds');this['setDataValue'](_0xdc68('0x9'),_0x36f545);this[_0xdc68('0xa')](_0xdc68('0xb'),_0x40e8eb||null);}},'data1':{'type':Sequelize[_0xdc68('0x2')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0xdc68('0x2')],'comment':_0xdc68('0xc')},'data3':{'type':Sequelize[_0xdc68('0x2')],'comment':_0xdc68('0xd')},'data4':{'type':Sequelize['STRING'],'comment':_0xdc68('0xe')},'data5':{'type':Sequelize[_0xdc68('0x2')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0xdc68('0x2')]},'internal':{'type':Sequelize[_0xdc68('0x5')]},'uniqueid':{'type':Sequelize[_0xdc68('0x2')]}};