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 _0xf64a=['update','emit','removeListener','length','./smsMessage.events','save','remove'];(function(_0x4c53c2,_0x4e6d80){var _0x1ebf6a=function(_0xe77b08){while(--_0xe77b08){_0x4c53c2['push'](_0x4c53c2['shift']());}};_0x1ebf6a(++_0x4e6d80);}(_0xf64a,0xc8));var _0xaf64=function(_0x344adc,_0x183c37){_0x344adc=_0x344adc-0x0;var _0x4014b2=_0xf64a[_0x344adc];return _0x4014b2;};'use strict';var SmsMessageEvents=require(_0xaf64('0x0'));var events=[_0xaf64('0x1'),_0xaf64('0x2'),_0xaf64('0x3')];function createListener(_0x98f555,_0x3940c8){return function(_0x37ff7e){_0x3940c8[_0xaf64('0x4')](_0x98f555,_0x37ff7e);};}function removeListener(_0xc8423,_0x1cad21){return function(){SmsMessageEvents[_0xaf64('0x5')](_0xc8423,_0x1cad21);};}exports['register']=function(_0x39ddd5){for(var _0x1b5b2e=0x0,_0x2f63c3=events[_0xaf64('0x6')];_0x1b5b2e<_0x2f63c3;_0x1b5b2e++){var _0x5f2103=events[_0x1b5b2e];var _0x14b41a=createListener('smsMessage:'+_0x5f2103,_0x39ddd5);SmsMessageEvents['on'](_0x5f2103,_0x14b41a);}};