Built motion from commit e6806ed6.|2.6.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 _0xb65f=['./openchannelInteraction.events','save','remove','update','register','length'];(function(_0xd2e2ab,_0x2440cf){var _0x1703a2=function(_0x23deba){while(--_0x23deba){_0xd2e2ab['push'](_0xd2e2ab['shift']());}};_0x1703a2(++_0x2440cf);}(_0xb65f,0x132));var _0xfb65=function(_0x1e8383,_0x408c78){_0x1e8383=_0x1e8383-0x0;var _0x17254f=_0xb65f[_0x1e8383];return _0x17254f;};'use strict';var OpenchannelInteractionEvents=require(_0xfb65('0x0'));var events=[_0xfb65('0x1'),_0xfb65('0x2'),_0xfb65('0x3')];function createListener(_0x19858e,_0x1bc776){return function(_0x46b12d){_0x1bc776['emit'](_0x19858e,_0x46b12d);};}function removeListener(_0x1baee3,_0x5ea502){return function(){OpenchannelInteractionEvents['removeListener'](_0x1baee3,_0x5ea502);};}exports[_0xfb65('0x4')]=function(_0x45d7b6){for(var _0x56e894=0x0,_0x55484a=events[_0xfb65('0x5')];_0x56e894<_0x55484a;_0x56e894++){var _0x418ae5=events[_0x56e894];var _0x1bfeee=createListener('openchannelInteraction:'+_0x418ae5,_0x45d7b6);OpenchannelInteractionEvents['on'](_0x418ae5,_0x1bfeee);}};