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 _0x1b76=['removeListener','register','smsInteraction:','./smsInteraction.events','save','remove','update'];(function(_0x30f420,_0x5d62eb){var _0x2a6ef5=function(_0x218977){while(--_0x218977){_0x30f420['push'](_0x30f420['shift']());}};_0x2a6ef5(++_0x5d62eb);}(_0x1b76,0x1e6));var _0x61b7=function(_0x102e37,_0x14a181){_0x102e37=_0x102e37-0x0;var _0x35a07c=_0x1b76[_0x102e37];return _0x35a07c;};'use strict';var SmsInteractionEvents=require(_0x61b7('0x0'));var events=[_0x61b7('0x1'),_0x61b7('0x2'),_0x61b7('0x3')];function createListener(_0x329c6f,_0x130104){return function(_0x5ee172){_0x130104['emit'](_0x329c6f,_0x5ee172);};}function removeListener(_0x210db3,_0x3db01d){return function(){SmsInteractionEvents[_0x61b7('0x4')](_0x210db3,_0x3db01d);};}exports[_0x61b7('0x5')]=function(_0x3f379d){for(var _0x48a8c2=0x0,_0x1e5b06=events['length'];_0x48a8c2<_0x1e5b06;_0x48a8c2++){var _0x56d983=events[_0x48a8c2];var _0x30da48=createListener(_0x61b7('0x6')+_0x56d983,_0x3f379d);SmsInteractionEvents['on'](_0x56d983,_0x30da48);}};