c1d36fd7f63f6cfd705dfc6f1a51af4fd3af0d57
[motion2.git] / server / api / openchannelInteraction / openchannelInteraction.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xb960=['register','openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit','removeListener'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xb960,0xb2));var _0x0b96=function(_0x39f375,_0x3aa8ec){_0x39f375=_0x39f375-0x0;var _0x463f93=_0xb960[_0x39f375];return _0x463f93;};'use strict';var OpenchannelInteractionEvents=require(_0x0b96('0x0'));var events=[_0x0b96('0x1'),_0x0b96('0x2'),_0x0b96('0x3')];function createListener(_0x600b01,_0x5e81f2){return function(_0xe48cd8){_0x5e81f2[_0x0b96('0x4')](_0x600b01,_0xe48cd8);};}function removeListener(_0x5b7e62,_0x4be8f7){return function(){OpenchannelInteractionEvents[_0x0b96('0x5')](_0x5b7e62,_0x4be8f7);};}exports[_0x0b96('0x6')]=function(_0x318cfa){for(var _0x451fdc=0x0,_0x6490cc=events['length'];_0x451fdc<_0x6490cc;_0x451fdc++){var _0x372107=events[_0x451fdc];var _0x19e5a4=createListener(_0x0b96('0x7')+_0x372107,_0x318cfa);OpenchannelInteractionEvents['on'](_0x372107,_0x19e5a4);}};