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 _0x34ec=['smsInteraction:','./smsInteraction.events','save','remove','update','emit','register','length'];(function(_0x1e2adf,_0x55c73a){var _0x103fec=function(_0x1d071b){while(--_0x1d071b){_0x1e2adf['push'](_0x1e2adf['shift']());}};_0x103fec(++_0x55c73a);}(_0x34ec,0x159));var _0xc34e=function(_0x8fad8c,_0xf1573b){_0x8fad8c=_0x8fad8c-0x0;var _0xae3eb6=_0x34ec[_0x8fad8c];return _0xae3eb6;};'use strict';var SmsInteractionEvents=require(_0xc34e('0x0'));var events=[_0xc34e('0x1'),_0xc34e('0x2'),_0xc34e('0x3')];function createListener(_0xe6074c,_0x37f1fe){return function(_0x120f08){_0x37f1fe[_0xc34e('0x4')](_0xe6074c,_0x120f08);};}function removeListener(_0x5798e4,_0x2386a8){return function(){SmsInteractionEvents['removeListener'](_0x5798e4,_0x2386a8);};}exports[_0xc34e('0x5')]=function(_0x2b169d){for(var _0x4a111e=0x0,_0xa86034=events[_0xc34e('0x6')];_0x4a111e<_0xa86034;_0x4a111e++){var _0x695cf4=events[_0x4a111e];var _0x134a7a=createListener(_0xc34e('0x7')+_0x695cf4,_0x2b169d);SmsInteractionEvents['on'](_0x695cf4,_0x134a7a);}};