917fa3172affd00f2e3cd967d0b4399c2a825b63
[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 _0x107d=['save','remove','update','register','length','openchannelInteraction:','./openchannelInteraction.events'];(function(_0x465028,_0x4570ac){var _0xb783d4=function(_0x5458c5){while(--_0x5458c5){_0x465028['push'](_0x465028['shift']());}};_0xb783d4(++_0x4570ac);}(_0x107d,0x68));var _0xd107=function(_0x2219c6,_0x234e22){_0x2219c6=_0x2219c6-0x0;var _0x4eef02=_0x107d[_0x2219c6];return _0x4eef02;};'use strict';var OpenchannelInteractionEvents=require(_0xd107('0x0'));var events=[_0xd107('0x1'),_0xd107('0x2'),_0xd107('0x3')];function createListener(_0x2d5461,_0x5c4d5e){return function(_0x11aa65){_0x5c4d5e['emit'](_0x2d5461,_0x11aa65);};}function removeListener(_0x1d92df,_0x17d52c){return function(){OpenchannelInteractionEvents['removeListener'](_0x1d92df,_0x17d52c);};}exports[_0xd107('0x4')]=function(_0x454341){for(var _0x104a5f=0x0,_0x3c12e5=events[_0xd107('0x5')];_0x104a5f<_0x3c12e5;_0x104a5f++){var _0x54c898=events[_0x104a5f];var _0x1d0607=createListener(_0xd107('0x6')+_0x54c898,_0x454341);OpenchannelInteractionEvents['on'](_0x54c898,_0x1d0607);}};