Built motion from commit f623a78c.|2.6.31
[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 _0x4cb0=['register','length','remove','update','removeListener'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x4cb0,0x192));var _0x04cb=function(_0x35d8dc,_0x2f8590){_0x35d8dc=_0x35d8dc-0x0;var _0x56a29c=_0x4cb0[_0x35d8dc];return _0x56a29c;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=['save',_0x04cb('0x0'),_0x04cb('0x1')];function createListener(_0x38cd9f,_0x4c6875){return function(_0x2f4b13){_0x4c6875['emit'](_0x38cd9f,_0x2f4b13);};}function removeListener(_0x32f3aa,_0x565e98){return function(){OpenchannelInteractionEvents[_0x04cb('0x2')](_0x32f3aa,_0x565e98);};}exports[_0x04cb('0x3')]=function(_0x1e45d4){for(var _0x532fa2=0x0,_0x5baf6c=events[_0x04cb('0x4')];_0x532fa2<_0x5baf6c;_0x532fa2++){var _0x581c24=events[_0x532fa2];var _0x40a692=createListener('openchannelInteraction:'+_0x581c24,_0x1e45d4);OpenchannelInteractionEvents['on'](_0x581c24,_0x40a692);}};