Built motion from commit 10af8726.|2.6.34
[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 _0xbca9=['removeListener','register','length','openchannelInteraction:','./openchannelInteraction.events','save','remove','update'];(function(_0x25383a,_0xd9b3c5){var _0x25fdb1=function(_0x343ca3){while(--_0x343ca3){_0x25383a['push'](_0x25383a['shift']());}};_0x25fdb1(++_0xd9b3c5);}(_0xbca9,0x7c));var _0x9bca=function(_0x2b0283,_0x58f0ff){_0x2b0283=_0x2b0283-0x0;var _0x1eff96=_0xbca9[_0x2b0283];return _0x1eff96;};'use strict';var OpenchannelInteractionEvents=require(_0x9bca('0x0'));var events=[_0x9bca('0x1'),_0x9bca('0x2'),_0x9bca('0x3')];function createListener(_0x4327da,_0x18366b){return function(_0x1b3970){_0x18366b['emit'](_0x4327da,_0x1b3970);};}function removeListener(_0x58e43a,_0x3906e3){return function(){OpenchannelInteractionEvents[_0x9bca('0x4')](_0x58e43a,_0x3906e3);};}exports[_0x9bca('0x5')]=function(_0x5448d6){for(var _0x59062e=0x0,_0x5e0cc3=events[_0x9bca('0x6')];_0x59062e<_0x5e0cc3;_0x59062e++){var _0x5809e9=events[_0x59062e];var _0x3f676f=createListener(_0x9bca('0x7')+_0x5809e9,_0x5448d6);OpenchannelInteractionEvents['on'](_0x5809e9,_0x3f676f);}};