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 _0x32cd=['smsInteraction:','./smsInteraction.events','save','remove','update','emit','removeListener','register'];(function(_0x59d91d,_0x4a6bd6){var _0x13f485=function(_0x17c595){while(--_0x17c595){_0x59d91d['push'](_0x59d91d['shift']());}};_0x13f485(++_0x4a6bd6);}(_0x32cd,0x1c9));var _0xd32c=function(_0x24be81,_0x37e680){_0x24be81=_0x24be81-0x0;var _0x58ecbf=_0x32cd[_0x24be81];return _0x58ecbf;};'use strict';var SmsInteractionEvents=require(_0xd32c('0x0'));var events=[_0xd32c('0x1'),_0xd32c('0x2'),_0xd32c('0x3')];function createListener(_0x9c78f2,_0xfbaf9){return function(_0x4cb0da){_0xfbaf9[_0xd32c('0x4')](_0x9c78f2,_0x4cb0da);};}function removeListener(_0x50fe19,_0x5bed38){return function(){SmsInteractionEvents[_0xd32c('0x5')](_0x50fe19,_0x5bed38);};}exports[_0xd32c('0x6')]=function(_0x71855f){for(var _0x302264=0x0,_0x2a7910=events['length'];_0x302264<_0x2a7910;_0x302264++){var _0x4ed1f8=events[_0x302264];var _0x127fcf=createListener(_0xd32c('0x7')+_0x4ed1f8,_0x71855f);SmsInteractionEvents['on'](_0x4ed1f8,_0x127fcf);}};