Built motion from commit (unavailable).|2.5.4
[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 _0xf86b=['save','remove','update','emit','removeListener','register','length','openchannelInteraction:'];(function(_0x31e29a,_0x349c9b){var _0x32d892=function(_0x41cc86){while(--_0x41cc86){_0x31e29a['push'](_0x31e29a['shift']());}};_0x32d892(++_0x349c9b);}(_0xf86b,0xb8));var _0xbf86=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf86b[_0x3dd15e];return _0x231fd0;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0xbf86('0x0'),_0xbf86('0x1'),_0xbf86('0x2')];function createListener(_0x23daa3,_0x240a30){return function(_0x2eb317){_0x240a30[_0xbf86('0x3')](_0x23daa3,_0x2eb317);};}function removeListener(_0x15d5f6,_0x18b82a){return function(){OpenchannelInteractionEvents[_0xbf86('0x4')](_0x15d5f6,_0x18b82a);};}exports[_0xbf86('0x5')]=function(_0x212f54){for(var _0x5d92d7=0x0,_0x5d93f7=events[_0xbf86('0x6')];_0x5d92d7<_0x5d93f7;_0x5d92d7++){var _0xf9c5a1=events[_0x5d92d7];var _0x1b996f=createListener(_0xbf86('0x7')+_0xf9c5a1,_0x212f54);OpenchannelInteractionEvents['on'](_0xf9c5a1,_0x1b996f);}};