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 _0x33fb=['smsInteraction:','save','emit','length'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0x33fb,0x1bd));var _0xb33f=function(_0x3e079e,_0xdf17b4){_0x3e079e=_0x3e079e-0x0;var _0x20b272=_0x33fb[_0x3e079e];return _0x20b272;};'use strict';var SmsInteractionEvents=require('./smsInteraction.events');var events=[_0xb33f('0x0'),'remove','update'];function createListener(_0x22d0af,_0x1a1126){return function(_0x4a428a){_0x1a1126[_0xb33f('0x1')](_0x22d0af,_0x4a428a);};}function removeListener(_0x20c547,_0x58f737){return function(){SmsInteractionEvents['removeListener'](_0x20c547,_0x58f737);};}exports['register']=function(_0x284bb8){for(var _0x4bcaa6=0x0,_0x3dcfac=events[_0xb33f('0x2')];_0x4bcaa6<_0x3dcfac;_0x4bcaa6++){var _0x2f9207=events[_0x4bcaa6];var _0x18a1fd=createListener(_0xb33f('0x3')+_0x2f9207,_0x284bb8);SmsInteractionEvents['on'](_0x2f9207,_0x18a1fd);}};