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 _0xe0fe=['emit','removeListener','register','length','smsInteraction:','./smsInteraction.events','save','remove','update'];(function(_0x260f28,_0x4e9b30){var _0x3aefcc=function(_0x223b18){while(--_0x223b18){_0x260f28['push'](_0x260f28['shift']());}};_0x3aefcc(++_0x4e9b30);}(_0xe0fe,0xdd));var _0xee0f=function(_0x24f1ff,_0x3bc62b){_0x24f1ff=_0x24f1ff-0x0;var _0x1ce011=_0xe0fe[_0x24f1ff];return _0x1ce011;};'use strict';var SmsInteractionEvents=require(_0xee0f('0x0'));var events=[_0xee0f('0x1'),_0xee0f('0x2'),_0xee0f('0x3')];function createListener(_0x731749,_0x125f1c){return function(_0x145be8){_0x125f1c[_0xee0f('0x4')](_0x731749,_0x145be8);};}function removeListener(_0x3eba5d,_0x23a30b){return function(){SmsInteractionEvents[_0xee0f('0x5')](_0x3eba5d,_0x23a30b);};}exports[_0xee0f('0x6')]=function(_0x155ea5){for(var _0x192643=0x0,_0x190444=events[_0xee0f('0x7')];_0x192643<_0x190444;_0x192643++){var _0x48d1fa=events[_0x192643];var _0x45bd08=createListener(_0xee0f('0x8')+_0x48d1fa,_0x155ea5);SmsInteractionEvents['on'](_0x48d1fa,_0x45bd08);}};