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 _0x8184=['update','emit','removeListener','register','length','smsInteraction:','./smsInteraction.events','save'];(function(_0x4a5b00,_0x20c4b2){var _0xe33c8f=function(_0x586c31){while(--_0x586c31){_0x4a5b00['push'](_0x4a5b00['shift']());}};_0xe33c8f(++_0x20c4b2);}(_0x8184,0x196));var _0x4818=function(_0x4c0622,_0x5dacaf){_0x4c0622=_0x4c0622-0x0;var _0x1799d8=_0x8184[_0x4c0622];return _0x1799d8;};'use strict';var SmsInteractionEvents=require(_0x4818('0x0'));var events=[_0x4818('0x1'),'remove',_0x4818('0x2')];function createListener(_0x40139c,_0x3ec389){return function(_0x4d5875){_0x3ec389[_0x4818('0x3')](_0x40139c,_0x4d5875);};}function removeListener(_0x2a9dde,_0x3ed18e){return function(){SmsInteractionEvents[_0x4818('0x4')](_0x2a9dde,_0x3ed18e);};}exports[_0x4818('0x5')]=function(_0x4687bd){for(var _0x2459dc=0x0,_0x41c406=events[_0x4818('0x6')];_0x2459dc<_0x41c406;_0x2459dc++){var _0x32f45e=events[_0x2459dc];var _0x19a49f=createListener(_0x4818('0x7')+_0x32f45e,_0x4687bd);SmsInteractionEvents['on'](_0x32f45e,_0x19a49f);}};