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 _0xd2b9=['./smsInteraction.events','remove','removeListener','register'];(function(_0x72a33d,_0x5691da){var _0x2621d5=function(_0x95b7c6){while(--_0x95b7c6){_0x72a33d['push'](_0x72a33d['shift']());}};_0x2621d5(++_0x5691da);}(_0xd2b9,0x84));var _0x9d2b=function(_0x291e73,_0x240beb){_0x291e73=_0x291e73-0x0;var _0x15a90f=_0xd2b9[_0x291e73];return _0x15a90f;};'use strict';var SmsInteractionEvents=require(_0x9d2b('0x0'));var events=['save',_0x9d2b('0x1'),'update'];function createListener(_0x163652,_0x542b4f){return function(_0x199be1){_0x542b4f['emit'](_0x163652,_0x199be1);};}function removeListener(_0x5b6b33,_0x28bbfb){return function(){SmsInteractionEvents[_0x9d2b('0x2')](_0x5b6b33,_0x28bbfb);};}exports[_0x9d2b('0x3')]=function(_0xb76e5e){for(var _0x232d22=0x0,_0x13dc0f=events['length'];_0x232d22<_0x13dc0f;_0x232d22++){var _0x40a8d5=events[_0x232d22];var _0x22efc2=createListener('smsInteraction:'+_0x40a8d5,_0xb76e5e);SmsInteractionEvents['on'](_0x40a8d5,_0x22efc2);}};