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 _0xf352=['update','emit','removeListener','register','./smsMessage.events'];(function(_0x4521e3,_0x10a8a4){var _0x46a272=function(_0x2f4c64){while(--_0x2f4c64){_0x4521e3['push'](_0x4521e3['shift']());}};_0x46a272(++_0x10a8a4);}(_0xf352,0xf9));var _0x2f35=function(_0x44ef46,_0x1b41cc){_0x44ef46=_0x44ef46-0x0;var _0x316a9e=_0xf352[_0x44ef46];return _0x316a9e;};'use strict';var SmsMessageEvents=require(_0x2f35('0x0'));var events=['save','remove',_0x2f35('0x1')];function createListener(_0x5765cb,_0x346573){return function(_0x55326a){_0x346573[_0x2f35('0x2')](_0x5765cb,_0x55326a);};}function removeListener(_0x18a035,_0x1fcd27){return function(){SmsMessageEvents[_0x2f35('0x3')](_0x18a035,_0x1fcd27);};}exports[_0x2f35('0x4')]=function(_0x55f271){for(var _0x1b3f76=0x0,_0x3f2c3c=events['length'];_0x1b3f76<_0x3f2c3c;_0x1b3f76++){var _0x56bc3d=events[_0x1b3f76];var _0x1cbd43=createListener('smsMessage:'+_0x56bc3d,_0x55f271);SmsMessageEvents['on'](_0x56bc3d,_0x1cbd43);}};