caaf43fae84338fc9255ab064c969ad1d32843ad
[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 _0xb07e=['removeListener','length','openchannelInteraction:','./openchannelInteraction.events','save','update','emit'];(function(_0x47aa64,_0xfb8a07){var _0x549c7a=function(_0x266165){while(--_0x266165){_0x47aa64['push'](_0x47aa64['shift']());}};_0x549c7a(++_0xfb8a07);}(_0xb07e,0x1e6));var _0xeb07=function(_0x4fc9e6,_0xc51915){_0x4fc9e6=_0x4fc9e6-0x0;var _0x551d28=_0xb07e[_0x4fc9e6];return _0x551d28;};'use strict';var OpenchannelInteractionEvents=require(_0xeb07('0x0'));var events=[_0xeb07('0x1'),'remove',_0xeb07('0x2')];function createListener(_0x2bf4d5,_0x1a9d69){return function(_0x45de25){_0x1a9d69[_0xeb07('0x3')](_0x2bf4d5,_0x45de25);};}function removeListener(_0x2b7bca,_0x2ee2c6){return function(){OpenchannelInteractionEvents[_0xeb07('0x4')](_0x2b7bca,_0x2ee2c6);};}exports['register']=function(_0x4eb6fe){for(var _0x19d0a8=0x0,_0x372f67=events[_0xeb07('0x5')];_0x19d0a8<_0x372f67;_0x19d0a8++){var _0x34f69b=events[_0x19d0a8];var _0x138534=createListener(_0xeb07('0x6')+_0x34f69b,_0x4eb6fe);OpenchannelInteractionEvents['on'](_0x34f69b,_0x138534);}};