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 _0xfd71=['smsMessage:','./smsMessage.events','save','remove','update','register','length'];(function(_0x1b4b23,_0x5dd6d6){var _0x2a325b=function(_0x175462){while(--_0x175462){_0x1b4b23['push'](_0x1b4b23['shift']());}};_0x2a325b(++_0x5dd6d6);}(_0xfd71,0x158));var _0x1fd7=function(_0x56bb63,_0x3e165b){_0x56bb63=_0x56bb63-0x0;var _0x56a7ec=_0xfd71[_0x56bb63];return _0x56a7ec;};'use strict';var SmsMessageEvents=require(_0x1fd7('0x0'));var events=[_0x1fd7('0x1'),_0x1fd7('0x2'),_0x1fd7('0x3')];function createListener(_0x24b5d3,_0x2a71d5){return function(_0x31a9b5){_0x2a71d5['emit'](_0x24b5d3,_0x31a9b5);};}function removeListener(_0x2bffdd,_0x2d99c8){return function(){SmsMessageEvents['removeListener'](_0x2bffdd,_0x2d99c8);};}exports[_0x1fd7('0x4')]=function(_0x495132){for(var _0x14d7b0=0x0,_0x1348b6=events[_0x1fd7('0x5')];_0x14d7b0<_0x1348b6;_0x14d7b0++){var _0x1fc750=events[_0x14d7b0];var _0x22c822=createListener(_0x1fd7('0x6')+_0x1fc750,_0x495132);SmsMessageEvents['on'](_0x1fc750,_0x22c822);}};