Built motion from commit (unavailable).|2.5.14
[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 _0x442e=['register','./openchannelInteraction.events','save','remove','emit','removeListener'];(function(_0x58d0bc,_0x48c016){var _0x28cfcc=function(_0x5ecfc5){while(--_0x5ecfc5){_0x58d0bc['push'](_0x58d0bc['shift']());}};_0x28cfcc(++_0x48c016);}(_0x442e,0x11b));var _0xe442=function(_0x2a7bdb,_0x564b64){_0x2a7bdb=_0x2a7bdb-0x0;var _0x284acc=_0x442e[_0x2a7bdb];return _0x284acc;};'use strict';var OpenchannelInteractionEvents=require(_0xe442('0x0'));var events=[_0xe442('0x1'),_0xe442('0x2'),'update'];function createListener(_0x2d7985,_0x35e233){return function(_0x2c19c8){_0x35e233[_0xe442('0x3')](_0x2d7985,_0x2c19c8);};}function removeListener(_0x547e15,_0x58e691){return function(){OpenchannelInteractionEvents[_0xe442('0x4')](_0x547e15,_0x58e691);};}exports[_0xe442('0x5')]=function(_0x7f7d25){for(var _0x3fdd78=0x0,_0x4966d1=events['length'];_0x3fdd78<_0x4966d1;_0x3fdd78++){var _0xb2270b=events[_0x3fdd78];var _0x4cc0ff=createListener('openchannelInteraction:'+_0xb2270b,_0x7f7d25);OpenchannelInteractionEvents['on'](_0xb2270b,_0x4cc0ff);}};