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 _0xf730=['register','length','smsMessage:','./smsMessage.events','save','remove','removeListener'];(function(_0x4b912e,_0x49e0fd){var _0x5af85b=function(_0xb342f9){while(--_0xb342f9){_0x4b912e['push'](_0x4b912e['shift']());}};_0x5af85b(++_0x49e0fd);}(_0xf730,0xf8));var _0x0f73=function(_0x5f8000,_0x4a56b1){_0x5f8000=_0x5f8000-0x0;var _0xc8f261=_0xf730[_0x5f8000];return _0xc8f261;};'use strict';var SmsMessageEvents=require(_0x0f73('0x0'));var events=[_0x0f73('0x1'),_0x0f73('0x2'),'update'];function createListener(_0x329f5e,_0x3d9269){return function(_0xfeec5f){_0x3d9269['emit'](_0x329f5e,_0xfeec5f);};}function removeListener(_0x1815a3,_0x2676de){return function(){SmsMessageEvents[_0x0f73('0x3')](_0x1815a3,_0x2676de);};}exports[_0x0f73('0x4')]=function(_0x33c379){for(var _0x2d3883=0x0,_0x346439=events[_0x0f73('0x5')];_0x2d3883<_0x346439;_0x2d3883++){var _0x18d8ea=events[_0x2d3883];var _0x3d61c4=createListener(_0x0f73('0x6')+_0x18d8ea,_0x33c379);SmsMessageEvents['on'](_0x18d8ea,_0x3d61c4);}};