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 _0xfba1=['update','emit','removeListener','register','length','smsMessage:','./smsMessage.events','save','remove'];(function(_0xf5d71c,_0x2613a6){var _0x5af672=function(_0x191f52){while(--_0x191f52){_0xf5d71c['push'](_0xf5d71c['shift']());}};_0x5af672(++_0x2613a6);}(_0xfba1,0x192));var _0x1fba=function(_0x5a4848,_0x16f661){_0x5a4848=_0x5a4848-0x0;var _0x4dc0cd=_0xfba1[_0x5a4848];return _0x4dc0cd;};'use strict';var SmsMessageEvents=require(_0x1fba('0x0'));var events=[_0x1fba('0x1'),_0x1fba('0x2'),_0x1fba('0x3')];function createListener(_0x527d2c,_0x14c12b){return function(_0x284825){_0x14c12b[_0x1fba('0x4')](_0x527d2c,_0x284825);};}function removeListener(_0x2def3b,_0x185381){return function(){SmsMessageEvents[_0x1fba('0x5')](_0x2def3b,_0x185381);};}exports[_0x1fba('0x6')]=function(_0x1df20b){for(var _0x48afcf=0x0,_0x1806dc=events[_0x1fba('0x7')];_0x48afcf<_0x1806dc;_0x48afcf++){var _0x54f71b=events[_0x48afcf];var _0x3e5de6=createListener(_0x1fba('0x8')+_0x54f71b,_0x1df20b);SmsMessageEvents['on'](_0x54f71b,_0x3e5de6);}};