Built motion from commit 43538d75.|2.5.35
[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 _0x4e9a=['length','./openchannelInteraction.events','remove','update','emit','removeListener','register'];(function(_0x578b3b,_0x248d6c){var _0x34a847=function(_0x5ab69a){while(--_0x5ab69a){_0x578b3b['push'](_0x578b3b['shift']());}};_0x34a847(++_0x248d6c);}(_0x4e9a,0xcc));var _0xa4e9=function(_0x1b7905,_0x5b74af){_0x1b7905=_0x1b7905-0x0;var _0x5d66c4=_0x4e9a[_0x1b7905];return _0x5d66c4;};'use strict';var OpenchannelInteractionEvents=require(_0xa4e9('0x0'));var events=['save',_0xa4e9('0x1'),_0xa4e9('0x2')];function createListener(_0x288df4,_0x1d460b){return function(_0x1c9987){_0x1d460b[_0xa4e9('0x3')](_0x288df4,_0x1c9987);};}function removeListener(_0x46b818,_0xd99e5f){return function(){OpenchannelInteractionEvents[_0xa4e9('0x4')](_0x46b818,_0xd99e5f);};}exports[_0xa4e9('0x5')]=function(_0x26dc37){for(var _0x13facb=0x0,_0x3d33b4=events[_0xa4e9('0x6')];_0x13facb<_0x3d33b4;_0x13facb++){var _0x2077a6=events[_0x13facb];var _0x105f83=createListener('openchannelInteraction:'+_0x2077a6,_0x26dc37);OpenchannelInteractionEvents['on'](_0x2077a6,_0x105f83);}};