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 _0xd97e=['./smsInteraction.events','save','remove','update','emit','register','length','smsInteraction:'];(function(_0x424a9a,_0x2dd9af){var _0xa7831c=function(_0x512534){while(--_0x512534){_0x424a9a['push'](_0x424a9a['shift']());}};_0xa7831c(++_0x2dd9af);}(_0xd97e,0xa8));var _0xed97=function(_0x58eb87,_0x642cf7){_0x58eb87=_0x58eb87-0x0;var _0x30e7d8=_0xd97e[_0x58eb87];return _0x30e7d8;};'use strict';var SmsInteractionEvents=require(_0xed97('0x0'));var events=[_0xed97('0x1'),_0xed97('0x2'),_0xed97('0x3')];function createListener(_0xd268a2,_0x351178){return function(_0x440437){_0x351178[_0xed97('0x4')](_0xd268a2,_0x440437);};}function removeListener(_0x137877,_0x442430){return function(){SmsInteractionEvents['removeListener'](_0x137877,_0x442430);};}exports[_0xed97('0x5')]=function(_0x408dd0){for(var _0x22e288=0x0,_0x47b572=events[_0xed97('0x6')];_0x22e288<_0x47b572;_0x22e288++){var _0x220606=events[_0x22e288];var _0x5482c3=createListener(_0xed97('0x7')+_0x220606,_0x408dd0);SmsInteractionEvents['on'](_0x220606,_0x5482c3);}};