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 _0x2cd0=['./smsInteraction.events','save','remove','emit','length','smsInteraction:'];(function(_0x2e41e2,_0x4e7250){var _0x2844d6=function(_0x28ce24){while(--_0x28ce24){_0x2e41e2['push'](_0x2e41e2['shift']());}};_0x2844d6(++_0x4e7250);}(_0x2cd0,0x120));var _0x02cd=function(_0x1329ae,_0x28f239){_0x1329ae=_0x1329ae-0x0;var _0x1129cb=_0x2cd0[_0x1329ae];return _0x1129cb;};'use strict';var SmsInteractionEvents=require(_0x02cd('0x0'));var events=[_0x02cd('0x1'),_0x02cd('0x2'),'update'];function createListener(_0x5c083d,_0x15c4af){return function(_0x339af0){_0x15c4af[_0x02cd('0x3')](_0x5c083d,_0x339af0);};}function removeListener(_0x2b0162,_0x595948){return function(){SmsInteractionEvents['removeListener'](_0x2b0162,_0x595948);};}exports['register']=function(_0x857e09){for(var _0x2f1021=0x0,_0x2a5c8b=events[_0x02cd('0x4')];_0x2f1021<_0x2a5c8b;_0x2f1021++){var _0x83711c=events[_0x2f1021];var _0x4db0d0=createListener(_0x02cd('0x5')+_0x83711c,_0x857e09);SmsInteractionEvents['on'](_0x83711c,_0x4db0d0);}};