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 _0x760e=['register','length','./smsInteraction.events','remove','update','removeListener'];(function(_0xc2dedb,_0xf51533){var _0x5b5a62=function(_0x53f0c7){while(--_0x53f0c7){_0xc2dedb['push'](_0xc2dedb['shift']());}};_0x5b5a62(++_0xf51533);}(_0x760e,0xf8));var _0xe760=function(_0x268f46,_0x3966ad){_0x268f46=_0x268f46-0x0;var _0x2534dc=_0x760e[_0x268f46];return _0x2534dc;};'use strict';var SmsInteractionEvents=require(_0xe760('0x0'));var events=['save',_0xe760('0x1'),_0xe760('0x2')];function createListener(_0x1f6c7e,_0x49938c){return function(_0x40d45f){_0x49938c['emit'](_0x1f6c7e,_0x40d45f);};}function removeListener(_0x43c0dc,_0x4c60ad){return function(){SmsInteractionEvents[_0xe760('0x3')](_0x43c0dc,_0x4c60ad);};}exports[_0xe760('0x4')]=function(_0x95a114){for(var _0x589731=0x0,_0x59e5fe=events[_0xe760('0x5')];_0x589731<_0x59e5fe;_0x589731++){var _0x19e56a=events[_0x589731];var _0x1cd677=createListener('smsInteraction:'+_0x19e56a,_0x95a114);SmsInteractionEvents['on'](_0x19e56a,_0x1cd677);}};