Built motion from commit 85328c08.|2.5.50
[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 _0xec05=['removeListener','register','length','./openchannelInteraction.events','save','remove','update','emit'];(function(_0x13be06,_0x41214c){var _0x54d525=function(_0x3cad66){while(--_0x3cad66){_0x13be06['push'](_0x13be06['shift']());}};_0x54d525(++_0x41214c);}(_0xec05,0xbb));var _0x5ec0=function(_0x5ac942,_0x4c3dd0){_0x5ac942=_0x5ac942-0x0;var _0x4164ea=_0xec05[_0x5ac942];return _0x4164ea;};'use strict';var OpenchannelInteractionEvents=require(_0x5ec0('0x0'));var events=[_0x5ec0('0x1'),_0x5ec0('0x2'),_0x5ec0('0x3')];function createListener(_0x11860c,_0x4da6f9){return function(_0x1e5fff){_0x4da6f9[_0x5ec0('0x4')](_0x11860c,_0x1e5fff);};}function removeListener(_0x3b015a,_0x2842b0){return function(){OpenchannelInteractionEvents[_0x5ec0('0x5')](_0x3b015a,_0x2842b0);};}exports[_0x5ec0('0x6')]=function(_0x154711){for(var _0x150d61=0x0,_0x37b519=events[_0x5ec0('0x7')];_0x150d61<_0x37b519;_0x150d61++){var _0xc1a808=events[_0x150d61];var _0x32a64e=createListener('openchannelInteraction:'+_0xc1a808,_0x154711);OpenchannelInteractionEvents['on'](_0xc1a808,_0x32a64e);}};