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 _0x4bf5=['emit','removeListener','register','smsInteraction:','./smsInteraction.events','remove','update'];(function(_0x3f097c,_0x32f99f){var _0x524678=function(_0x12987a){while(--_0x12987a){_0x3f097c['push'](_0x3f097c['shift']());}};_0x524678(++_0x32f99f);}(_0x4bf5,0x131));var _0x54bf=function(_0x1de1b3,_0x277a72){_0x1de1b3=_0x1de1b3-0x0;var _0x2af7ef=_0x4bf5[_0x1de1b3];return _0x2af7ef;};'use strict';var SmsInteractionEvents=require(_0x54bf('0x0'));var events=['save',_0x54bf('0x1'),_0x54bf('0x2')];function createListener(_0x29333d,_0x495720){return function(_0x128ccc){_0x495720[_0x54bf('0x3')](_0x29333d,_0x128ccc);};}function removeListener(_0x5c0203,_0x487324){return function(){SmsInteractionEvents[_0x54bf('0x4')](_0x5c0203,_0x487324);};}exports[_0x54bf('0x5')]=function(_0x184d05){for(var _0x304d60=0x0,_0x42c60b=events['length'];_0x304d60<_0x42c60b;_0x304d60++){var _0x33fd53=events[_0x304d60];var _0x3e62a2=createListener(_0x54bf('0x6')+_0x33fd53,_0x184d05);SmsInteractionEvents['on'](_0x33fd53,_0x3e62a2);}};