Built motion from commit (unavailable).|2.5.11
[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 _0xc6f9=['save','update','emit','register','length','openchannelInteraction:','./openchannelInteraction.events'];(function(_0x37d039,_0x15895c){var _0x2467e0=function(_0x4432b5){while(--_0x4432b5){_0x37d039['push'](_0x37d039['shift']());}};_0x2467e0(++_0x15895c);}(_0xc6f9,0x179));var _0x9c6f=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0xc6f9[_0x2dafbe];return _0x58a45a;};'use strict';var OpenchannelInteractionEvents=require(_0x9c6f('0x0'));var events=[_0x9c6f('0x1'),'remove',_0x9c6f('0x2')];function createListener(_0x1eebd9,_0x21fac7){return function(_0x1e7a84){_0x21fac7[_0x9c6f('0x3')](_0x1eebd9,_0x1e7a84);};}function removeListener(_0x5813d5,_0x343325){return function(){OpenchannelInteractionEvents['removeListener'](_0x5813d5,_0x343325);};}exports[_0x9c6f('0x4')]=function(_0x5a377f){for(var _0x29ed1e=0x0,_0x132ee5=events[_0x9c6f('0x5')];_0x29ed1e<_0x132ee5;_0x29ed1e++){var _0x25167b=events[_0x29ed1e];var _0x1a8d66=createListener(_0x9c6f('0x6')+_0x25167b,_0x5a377f);OpenchannelInteractionEvents['on'](_0x25167b,_0x1a8d66);}};