Built motion from commit d5e4af8c.|2.6.23
[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 _0x6561=['emit','register','length','openchannelInteraction:','./openchannelInteraction.events','save','remove'];(function(_0x520a3f,_0x57eba7){var _0x189b9e=function(_0x43c8c2){while(--_0x43c8c2){_0x520a3f['push'](_0x520a3f['shift']());}};_0x189b9e(++_0x57eba7);}(_0x6561,0x10e));var _0x1656=function(_0x11f249,_0x4ca4a8){_0x11f249=_0x11f249-0x0;var _0x5c3656=_0x6561[_0x11f249];return _0x5c3656;};'use strict';var OpenchannelInteractionEvents=require(_0x1656('0x0'));var events=[_0x1656('0x1'),_0x1656('0x2'),'update'];function createListener(_0x3d2a71,_0x18fd6e){return function(_0x24426f){_0x18fd6e[_0x1656('0x3')](_0x3d2a71,_0x24426f);};}function removeListener(_0x1f3b0b,_0x35c4f0){return function(){OpenchannelInteractionEvents['removeListener'](_0x1f3b0b,_0x35c4f0);};}exports[_0x1656('0x4')]=function(_0x1372d0){for(var _0x449177=0x0,_0x1b8e8e=events[_0x1656('0x5')];_0x449177<_0x1b8e8e;_0x449177++){var _0x4b4512=events[_0x449177];var _0x5f3a5d=createListener(_0x1656('0x6')+_0x4b4512,_0x1372d0);OpenchannelInteractionEvents['on'](_0x4b4512,_0x5f3a5d);}};