6952730eb8ac4a141d69380c822095a87b65f068
[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 _0x68be=['update','emit','removeListener','register','length','openchannelInteraction:','./openchannelInteraction.events','remove'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x68be,0x1ee));var _0xe68b=function(_0xed0fdb,_0x2ebc19){_0xed0fdb=_0xed0fdb-0x0;var _0x11898d=_0x68be[_0xed0fdb];return _0x11898d;};'use strict';var OpenchannelInteractionEvents=require(_0xe68b('0x0'));var events=['save',_0xe68b('0x1'),_0xe68b('0x2')];function createListener(_0x13cc61,_0x12cfde){return function(_0x23f6da){_0x12cfde[_0xe68b('0x3')](_0x13cc61,_0x23f6da);};}function removeListener(_0x2fc750,_0x5c2098){return function(){OpenchannelInteractionEvents[_0xe68b('0x4')](_0x2fc750,_0x5c2098);};}exports[_0xe68b('0x5')]=function(_0x4d4370){for(var _0x641384=0x0,_0xc67bf8=events[_0xe68b('0x6')];_0x641384<_0xc67bf8;_0x641384++){var _0x332bbc=events[_0x641384];var _0x69d6bd=createListener(_0xe68b('0x7')+_0x332bbc,_0x4d4370);OpenchannelInteractionEvents['on'](_0x332bbc,_0x69d6bd);}};