ad759314ff541d302b5dcaae290840e4956da03b
[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 _0xe478=['./openchannelInteraction.events','remove','emit','register','length','openchannelInteraction:'];(function(_0x3bc375,_0x1297f){var _0x4f2fbf=function(_0x359e9e){while(--_0x359e9e){_0x3bc375['push'](_0x3bc375['shift']());}};_0x4f2fbf(++_0x1297f);}(_0xe478,0xf6));var _0x8e47=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0xe478[_0x46698a];return _0x356db0;};'use strict';var OpenchannelInteractionEvents=require(_0x8e47('0x0'));var events=['save',_0x8e47('0x1'),'update'];function createListener(_0x5b83e2,_0x497e39){return function(_0x368740){_0x497e39[_0x8e47('0x2')](_0x5b83e2,_0x368740);};}function removeListener(_0x532c58,_0x4e675e){return function(){OpenchannelInteractionEvents['removeListener'](_0x532c58,_0x4e675e);};}exports[_0x8e47('0x3')]=function(_0x896a91){for(var _0x5cedeb=0x0,_0x2f68a0=events[_0x8e47('0x4')];_0x5cedeb<_0x2f68a0;_0x5cedeb++){var _0x323ca9=events[_0x5cedeb];var _0x120d26=createListener(_0x8e47('0x5')+_0x323ca9,_0x896a91);OpenchannelInteractionEvents['on'](_0x323ca9,_0x120d26);}};