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 _0x6e1c=['save','remove','update','removeListener','register','length'];(function(_0x30c666,_0x435c6d){var _0x1149fb=function(_0x1f1cb6){while(--_0x1f1cb6){_0x30c666['push'](_0x30c666['shift']());}};_0x1149fb(++_0x435c6d);}(_0x6e1c,0xfc));var _0xc6e1=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x6e1c[_0x14add3];return _0x4a174f;};'use strict';var SmsMessageEvents=require('./smsMessage.events');var events=[_0xc6e1('0x0'),_0xc6e1('0x1'),_0xc6e1('0x2')];function createListener(_0x5206b0,_0x4782d2){return function(_0x193efc){_0x4782d2['emit'](_0x5206b0,_0x193efc);};}function removeListener(_0x540a52,_0x10e601){return function(){SmsMessageEvents[_0xc6e1('0x3')](_0x540a52,_0x10e601);};}exports[_0xc6e1('0x4')]=function(_0x2cba24){for(var _0xf9e8d9=0x0,_0x413acc=events[_0xc6e1('0x5')];_0xf9e8d9<_0x413acc;_0xf9e8d9++){var _0xce1ff9=events[_0xf9e8d9];var _0x53380e=createListener('smsMessage:'+_0xce1ff9,_0x2cba24);SmsMessageEvents['on'](_0xce1ff9,_0x53380e);}};