e054408d04686f9f948a7d823048e346b3a1ff56
[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 _0x1a7c=['./openchannelInteraction.events','save','update','emit','removeListener','register'];(function(_0x271633,_0x1ac2b3){var _0x5ab434=function(_0x53e541){while(--_0x53e541){_0x271633['push'](_0x271633['shift']());}};_0x5ab434(++_0x1ac2b3);}(_0x1a7c,0x16e));var _0xc1a7=function(_0x131585,_0x1abd33){_0x131585=_0x131585-0x0;var _0x1fcca2=_0x1a7c[_0x131585];return _0x1fcca2;};'use strict';var OpenchannelInteractionEvents=require(_0xc1a7('0x0'));var events=[_0xc1a7('0x1'),'remove',_0xc1a7('0x2')];function createListener(_0x5df51e,_0x50545b){return function(_0xd36b27){_0x50545b[_0xc1a7('0x3')](_0x5df51e,_0xd36b27);};}function removeListener(_0x2bd28f,_0x5310e3){return function(){OpenchannelInteractionEvents[_0xc1a7('0x4')](_0x2bd28f,_0x5310e3);};}exports[_0xc1a7('0x5')]=function(_0x463316){for(var _0xcd5714=0x0,_0x15c574=events['length'];_0xcd5714<_0x15c574;_0xcd5714++){var _0x13f4e7=events[_0xcd5714];var _0x4b7983=createListener('openchannelInteraction:'+_0x13f4e7,_0x463316);OpenchannelInteractionEvents['on'](_0x13f4e7,_0x4b7983);}};