Built motion from commit (unavailable).|2.5.0
[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 _0x3a65=['save','remove','removeListener','register','length','./openchannelInteraction.events'];(function(_0x6261e0,_0xbe1bce){var _0x58e6b4=function(_0x2d2caa){while(--_0x2d2caa){_0x6261e0['push'](_0x6261e0['shift']());}};_0x58e6b4(++_0xbe1bce);}(_0x3a65,0x155));var _0x53a6=function(_0xa5434,_0x37cddc){_0xa5434=_0xa5434-0x0;var _0x3df2d0=_0x3a65[_0xa5434];return _0x3df2d0;};'use strict';var OpenchannelInteractionEvents=require(_0x53a6('0x0'));var events=[_0x53a6('0x1'),_0x53a6('0x2'),'update'];function createListener(_0xeef894,_0x17d1a6){return function(_0x4db087){_0x17d1a6['emit'](_0xeef894,_0x4db087);};}function removeListener(_0x39eec8,_0x5db043){return function(){OpenchannelInteractionEvents[_0x53a6('0x3')](_0x39eec8,_0x5db043);};}exports[_0x53a6('0x4')]=function(_0x455430){for(var _0x28f7ec=0x0,_0x1d3970=events[_0x53a6('0x5')];_0x28f7ec<_0x1d3970;_0x28f7ec++){var _0x3c5168=events[_0x28f7ec];var _0x1108c0=createListener('openchannelInteraction:'+_0x3c5168,_0x455430);OpenchannelInteractionEvents['on'](_0x3c5168,_0x1108c0);}};