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 _0x0646=['smsInteraction:','update','emit','removeListener','length'];(function(_0x5b5cde,_0x1f7c5f){var _0x364ad2=function(_0x4a1172){while(--_0x4a1172){_0x5b5cde['push'](_0x5b5cde['shift']());}};_0x364ad2(++_0x1f7c5f);}(_0x0646,0x119));var _0x6064=function(_0x2a0566,_0x136e55){_0x2a0566=_0x2a0566-0x0;var _0x45ec17=_0x0646[_0x2a0566];return _0x45ec17;};'use strict';var SmsInteractionEvents=require('./smsInteraction.events');var events=['save','remove',_0x6064('0x0')];function createListener(_0x253926,_0x3643ec){return function(_0x46c0b5){_0x3643ec[_0x6064('0x1')](_0x253926,_0x46c0b5);};}function removeListener(_0x48ac56,_0x92fa7d){return function(){SmsInteractionEvents[_0x6064('0x2')](_0x48ac56,_0x92fa7d);};}exports['register']=function(_0x48e987){for(var _0x221ac5=0x0,_0x3e5724=events[_0x6064('0x3')];_0x221ac5<_0x3e5724;_0x221ac5++){var _0x4e3cb7=events[_0x221ac5];var _0x452cf1=createListener(_0x6064('0x4')+_0x4e3cb7,_0x48e987);SmsInteractionEvents['on'](_0x4e3cb7,_0x452cf1);}};