4f6892fb9a6badea48a8e7c9e54e28fdf86c39a9
[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 _0xca36=['save','remove','update','removeListener','register','length','openchannelInteraction:'];(function(_0x253228,_0x382767){var _0x5292fa=function(_0x6118db){while(--_0x6118db){_0x253228['push'](_0x253228['shift']());}};_0x5292fa(++_0x382767);}(_0xca36,0x1ea));var _0x6ca3=function(_0x18ba53,_0x5a47b6){_0x18ba53=_0x18ba53-0x0;var _0x54dfc8=_0xca36[_0x18ba53];return _0x54dfc8;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x6ca3('0x0'),_0x6ca3('0x1'),_0x6ca3('0x2')];function createListener(_0x2227bd,_0x416dbc){return function(_0x124713){_0x416dbc['emit'](_0x2227bd,_0x124713);};}function removeListener(_0x19e107,_0x46ba13){return function(){OpenchannelInteractionEvents[_0x6ca3('0x3')](_0x19e107,_0x46ba13);};}exports[_0x6ca3('0x4')]=function(_0x120617){for(var _0x5db31d=0x0,_0x1f6270=events[_0x6ca3('0x5')];_0x5db31d<_0x1f6270;_0x5db31d++){var _0x4900d7=events[_0x5db31d];var _0x42a299=createListener(_0x6ca3('0x6')+_0x4900d7,_0x120617);OpenchannelInteractionEvents['on'](_0x4900d7,_0x42a299);}};