1289ca3fd037fc939a979645eee3491d5f443fef
[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 _0x32e5=['emit','removeListener','register','length','openchannelInteraction:','save','remove','update'];(function(_0x15cbce,_0xda8402){var _0x257f29=function(_0x388132){while(--_0x388132){_0x15cbce['push'](_0x15cbce['shift']());}};_0x257f29(++_0xda8402);}(_0x32e5,0xbd));var _0x532e=function(_0xbca1b1,_0x33f0ce){_0xbca1b1=_0xbca1b1-0x0;var _0x4e1686=_0x32e5[_0xbca1b1];return _0x4e1686;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x532e('0x0'),_0x532e('0x1'),_0x532e('0x2')];function createListener(_0x6d9d48,_0x410ee0){return function(_0x20ceea){_0x410ee0[_0x532e('0x3')](_0x6d9d48,_0x20ceea);};}function removeListener(_0x42f77d,_0x243072){return function(){OpenchannelInteractionEvents[_0x532e('0x4')](_0x42f77d,_0x243072);};}exports[_0x532e('0x5')]=function(_0x315d2d){for(var _0x40d603=0x0,_0x5b7312=events[_0x532e('0x6')];_0x40d603<_0x5b7312;_0x40d603++){var _0x53096f=events[_0x40d603];var _0x86c243=createListener(_0x532e('0x7')+_0x53096f,_0x315d2d);OpenchannelInteractionEvents['on'](_0x53096f,_0x86c243);}};