Built motion from commit f67b3b02.|2.6.31
[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 _0x2767=['removeListener','register','length','save','remove','update'];(function(_0x576905,_0x4c63f1){var _0x5ae6fa=function(_0x409f6b){while(--_0x409f6b){_0x576905['push'](_0x576905['shift']());}};_0x5ae6fa(++_0x4c63f1);}(_0x2767,0xe7));var _0x7276=function(_0x228e98,_0x285505){_0x228e98=_0x228e98-0x0;var _0x2454e4=_0x2767[_0x228e98];return _0x2454e4;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x7276('0x0'),_0x7276('0x1'),_0x7276('0x2')];function createListener(_0x1d1ebf,_0x7bd11a){return function(_0x39d8e7){_0x7bd11a['emit'](_0x1d1ebf,_0x39d8e7);};}function removeListener(_0x199234,_0x3149de){return function(){OpenchannelInteractionEvents[_0x7276('0x3')](_0x199234,_0x3149de);};}exports[_0x7276('0x4')]=function(_0xb446f3){for(var _0x336110=0x0,_0x271eef=events[_0x7276('0x5')];_0x336110<_0x271eef;_0x336110++){var _0x25bbfc=events[_0x336110];var _0x2b8970=createListener('openchannelInteraction:'+_0x25bbfc,_0xb446f3);OpenchannelInteractionEvents['on'](_0x25bbfc,_0x2b8970);}};