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 _0x1ac7=['duration','talk:[start]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','getDataValue','enterAt','seconds','setDataValue','exitAt'];(function(_0x151381,_0x97b314){var _0x2afab6=function(_0x4b3941){while(--_0x4b3941){_0x151381['push'](_0x151381['shift']());}};_0x2afab6(++_0x97b314);}(_0x1ac7,0x7c));var _0x71ac=function(_0xd09668,_0x1435b2){_0xd09668=_0xd09668-0x0;var _0x68726=_0x1ac7[_0xd09668];return _0x68726;};'use strict';var Sequelize=require(_0x71ac('0x0'));var moment=require(_0x71ac('0x1'));module['exports']={'channel':{'type':Sequelize[_0x71ac('0x2')]},'membername':{'type':Sequelize[_0x71ac('0x2')]},'interface':{'type':Sequelize[_0x71ac('0x2')]},'type':{'type':Sequelize[_0x71ac('0x2')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x71ac('0x3')},'duration':{'type':Sequelize[_0x71ac('0x4')]},'enterAt':{'type':Sequelize[_0x71ac('0x5')]},'exitAt':{'type':Sequelize[_0x71ac('0x5')],'set':function(_0x86a043){var _0xded3ca=moment(_0x86a043);var _0x5c58d2=moment(this[_0x71ac('0x6')](_0x71ac('0x7')));var _0xd8058b=_0xded3ca['diff'](_0x5c58d2,_0x71ac('0x8'));this[_0x71ac('0x9')](_0x71ac('0xa'),_0x86a043);this[_0x71ac('0x9')](_0x71ac('0xb'),_0xd8058b>=0x0?_0xd8058b:null);}},'data1':{'type':Sequelize[_0x71ac('0x2')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0x71ac('0x2')],'comment':_0x71ac('0xc')},'data3':{'type':Sequelize[_0x71ac('0x2')],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0x71ac('0x2')],'comment':_0x71ac('0xd')},'data5':{'type':Sequelize[_0x71ac('0x2')],'comment':_0x71ac('0xe')},'role':{'type':Sequelize[_0x71ac('0x2')]},'internal':{'type':Sequelize[_0x71ac('0x4')]},'uniqueid':{'type':Sequelize[_0x71ac('0x2')]}};