02ba18d1187087ecfae474ad4d7bb71b6e761d4c
[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 _0x9d06=['openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit','register'];(function(_0x4d6ffd,_0x3f5780){var _0x406b81=function(_0x54ae03){while(--_0x54ae03){_0x4d6ffd['push'](_0x4d6ffd['shift']());}};_0x406b81(++_0x3f5780);}(_0x9d06,0x17b));var _0x69d0=function(_0x34008a,_0x174824){_0x34008a=_0x34008a-0x0;var _0x4839ce=_0x9d06[_0x34008a];return _0x4839ce;};'use strict';var OpenchannelInteractionEvents=require(_0x69d0('0x0'));var events=[_0x69d0('0x1'),_0x69d0('0x2'),_0x69d0('0x3')];function createListener(_0x1e67d4,_0x47c627){return function(_0x5e98a7){_0x47c627[_0x69d0('0x4')](_0x1e67d4,_0x5e98a7);};}function removeListener(_0x1b1bcb,_0x2cb1cf){return function(){OpenchannelInteractionEvents['removeListener'](_0x1b1bcb,_0x2cb1cf);};}exports[_0x69d0('0x5')]=function(_0x35f36e){for(var _0x29810d=0x0,_0x1ebc30=events['length'];_0x29810d<_0x1ebc30;_0x29810d++){var _0x57ae82=events[_0x29810d];var _0x4a2531=createListener(_0x69d0('0x6')+_0x57ae82,_0x35f36e);OpenchannelInteractionEvents['on'](_0x57ae82,_0x4a2531);}};