Built motion from commit (unavailable).|2.5.0
[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 _0xaa80=['./openchannelInteraction.events','update','removeListener','register','length','openchannelInteraction:'];(function(_0x4df69e,_0x5131d5){var _0x1f9041=function(_0x1e6288){while(--_0x1e6288){_0x4df69e['push'](_0x4df69e['shift']());}};_0x1f9041(++_0x5131d5);}(_0xaa80,0xcc));var _0x0aa8=function(_0x5ca9c4,_0x57ed8b){_0x5ca9c4=_0x5ca9c4-0x0;var _0x41063d=_0xaa80[_0x5ca9c4];return _0x41063d;};'use strict';var OpenchannelInteractionEvents=require(_0x0aa8('0x0'));var events=['save','remove',_0x0aa8('0x1')];function createListener(_0x1b000b,_0x3abdd7){return function(_0x193cd7){_0x3abdd7['emit'](_0x1b000b,_0x193cd7);};}function removeListener(_0x2fef6a,_0xb64532){return function(){OpenchannelInteractionEvents[_0x0aa8('0x2')](_0x2fef6a,_0xb64532);};}exports[_0x0aa8('0x3')]=function(_0x3198f7){for(var _0x3bdfeb=0x0,_0x3fa41c=events[_0x0aa8('0x4')];_0x3bdfeb<_0x3fa41c;_0x3bdfeb++){var _0x58c915=events[_0x3bdfeb];var _0x17e6d4=createListener(_0x0aa8('0x5')+_0x58c915,_0x3198f7);OpenchannelInteractionEvents['on'](_0x58c915,_0x17e6d4);}};