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 _0x92f7=['length','./smsInteraction.events','save','remove','update','emit','removeListener'];(function(_0x6f5598,_0xabeb74){var _0x1e1325=function(_0x1da246){while(--_0x1da246){_0x6f5598['push'](_0x6f5598['shift']());}};_0x1e1325(++_0xabeb74);}(_0x92f7,0x104));var _0x792f=function(_0x36665f,_0x4f9488){_0x36665f=_0x36665f-0x0;var _0x481d25=_0x92f7[_0x36665f];return _0x481d25;};'use strict';var SmsInteractionEvents=require(_0x792f('0x0'));var events=[_0x792f('0x1'),_0x792f('0x2'),_0x792f('0x3')];function createListener(_0x3233e4,_0x2357e1){return function(_0x4349d9){_0x2357e1[_0x792f('0x4')](_0x3233e4,_0x4349d9);};}function removeListener(_0x4cd3db,_0x2fba47){return function(){SmsInteractionEvents[_0x792f('0x5')](_0x4cd3db,_0x2fba47);};}exports['register']=function(_0x194db2){for(var _0x36544a=0x0,_0x1d80f9=events[_0x792f('0x6')];_0x36544a<_0x1d80f9;_0x36544a++){var _0x57190f=events[_0x36544a];var _0x540a91=createListener('smsInteraction:'+_0x57190f,_0x194db2);SmsInteractionEvents['on'](_0x57190f,_0x540a91);}};