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 _0xf6e7=['removeListener','length','./smsInteraction.events'];(function(_0x20c3b4,_0x2fbfa9){var _0x595c49=function(_0x245cfb){while(--_0x245cfb){_0x20c3b4['push'](_0x20c3b4['shift']());}};_0x595c49(++_0x2fbfa9);}(_0xf6e7,0x119));var _0x7f6e=function(_0x7ed066,_0x267d90){_0x7ed066=_0x7ed066-0x0;var _0x527168=_0xf6e7[_0x7ed066];return _0x527168;};'use strict';var SmsInteractionEvents=require(_0x7f6e('0x0'));var events=['save','remove','update'];function createListener(_0x1d8e66,_0x6228f3){return function(_0x51733e){_0x6228f3['emit'](_0x1d8e66,_0x51733e);};}function removeListener(_0x1723a5,_0x2d5a1f){return function(){SmsInteractionEvents[_0x7f6e('0x1')](_0x1723a5,_0x2d5a1f);};}exports['register']=function(_0x53664b){for(var _0x88e013=0x0,_0x1299ca=events[_0x7f6e('0x2')];_0x88e013<_0x1299ca;_0x88e013++){var _0x574be8=events[_0x88e013];var _0x141828=createListener('smsInteraction:'+_0x574be8,_0x53664b);SmsInteractionEvents['on'](_0x574be8,_0x141828);}};