61b5092ec0c183489cbed13598447f49fefdfe35
[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 _0x093c=['save','remove','removeListener','length','openchannelInteraction:','./openchannelInteraction.events'];(function(_0x48f7cf,_0x4baa04){var _0xc201c0=function(_0x23ff34){while(--_0x23ff34){_0x48f7cf['push'](_0x48f7cf['shift']());}};_0xc201c0(++_0x4baa04);}(_0x093c,0x16d));var _0xc093=function(_0x488838,_0xfc56d0){_0x488838=_0x488838-0x0;var _0x1c8741=_0x093c[_0x488838];return _0x1c8741;};'use strict';var OpenchannelInteractionEvents=require(_0xc093('0x0'));var events=[_0xc093('0x1'),_0xc093('0x2'),'update'];function createListener(_0x37a72a,_0x4988cf){return function(_0x3999f0){_0x4988cf['emit'](_0x37a72a,_0x3999f0);};}function removeListener(_0x4fbaac,_0x3f2bd3){return function(){OpenchannelInteractionEvents[_0xc093('0x3')](_0x4fbaac,_0x3f2bd3);};}exports['register']=function(_0x7dc807){for(var _0x2a3407=0x0,_0x49fcb7=events[_0xc093('0x4')];_0x2a3407<_0x49fcb7;_0x2a3407++){var _0x159c5a=events[_0x2a3407];var _0x273bf6=createListener(_0xc093('0x5')+_0x159c5a,_0x7dc807);OpenchannelInteractionEvents['on'](_0x159c5a,_0x273bf6);}};