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 _0x0e16=['length','save','remove','update','emit','removeListener','register'];(function(_0x45f951,_0x2750c8){var _0x24756c=function(_0x31c931){while(--_0x31c931){_0x45f951['push'](_0x45f951['shift']());}};_0x24756c(++_0x2750c8);}(_0x0e16,0x1dd));var _0x60e1=function(_0x42f009,_0x5e27b1){_0x42f009=_0x42f009-0x0;var _0x22a1e0=_0x0e16[_0x42f009];return _0x22a1e0;};'use strict';var SmsInteractionEvents=require('./smsInteraction.events');var events=[_0x60e1('0x0'),_0x60e1('0x1'),_0x60e1('0x2')];function createListener(_0x371b3f,_0x8294a5){return function(_0x3ec5f6){_0x8294a5[_0x60e1('0x3')](_0x371b3f,_0x3ec5f6);};}function removeListener(_0x227f90,_0x29cc04){return function(){SmsInteractionEvents[_0x60e1('0x4')](_0x227f90,_0x29cc04);};}exports[_0x60e1('0x5')]=function(_0x2c649f){for(var _0x1b144f=0x0,_0x60f8fd=events[_0x60e1('0x6')];_0x1b144f<_0x60f8fd;_0x1b144f++){var _0x297dfe=events[_0x1b144f];var _0x74db0f=createListener('smsInteraction:'+_0x297dfe,_0x2c649f);SmsInteractionEvents['on'](_0x297dfe,_0x74db0f);}};