cae1c55d408c7cf4bad0da6fe295c34887bbc9e8
[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 _0x1109=['remove','update','emit','removeListener','save'];(function(_0x281e5e,_0xf320e2){var _0x5a22d2=function(_0x405ff9){while(--_0x405ff9){_0x281e5e['push'](_0x281e5e['shift']());}};_0x5a22d2(++_0xf320e2);}(_0x1109,0x1ad));var _0x9110=function(_0x1cdb2d,_0x8f1f76){_0x1cdb2d=_0x1cdb2d-0x0;var _0x4dafe3=_0x1109[_0x1cdb2d];return _0x4dafe3;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x9110('0x0'),_0x9110('0x1'),_0x9110('0x2')];function createListener(_0x20672a,_0x5ebdea){return function(_0x45ceb4){_0x5ebdea[_0x9110('0x3')](_0x20672a,_0x45ceb4);};}function removeListener(_0x51f2c7,_0x54e32e){return function(){OpenchannelInteractionEvents[_0x9110('0x4')](_0x51f2c7,_0x54e32e);};}exports['register']=function(_0x9cc0a2){for(var _0x4e88ec=0x0,_0x5ccecc=events['length'];_0x4e88ec<_0x5ccecc;_0x4e88ec++){var _0x4136e9=events[_0x4e88ec];var _0x300480=createListener('openchannelInteraction:'+_0x4136e9,_0x9cc0a2);OpenchannelInteractionEvents['on'](_0x4136e9,_0x300480);}};