Built motion from commit (unavailable).|2.4.20
[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 _0x8956=['update','emit','removeListener','register','length','openchannelInteraction:','save','remove'];(function(_0x6131cd,_0x4c26a1){var _0x47e916=function(_0x1f2bce){while(--_0x1f2bce){_0x6131cd['push'](_0x6131cd['shift']());}};_0x47e916(++_0x4c26a1);}(_0x8956,0x86));var _0x6895=function(_0x566e0,_0xc87459){_0x566e0=_0x566e0-0x0;var _0x3422fd=_0x8956[_0x566e0];return _0x3422fd;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x6895('0x0'),_0x6895('0x1'),_0x6895('0x2')];function createListener(_0x702a4d,_0x51b332){return function(_0x3964a9){_0x51b332[_0x6895('0x3')](_0x702a4d,_0x3964a9);};}function removeListener(_0x13eb9f,_0x598d5f){return function(){OpenchannelInteractionEvents[_0x6895('0x4')](_0x13eb9f,_0x598d5f);};}exports[_0x6895('0x5')]=function(_0x14b47a){for(var _0x351176=0x0,_0x662e96=events[_0x6895('0x6')];_0x351176<_0x662e96;_0x351176++){var _0x192d5f=events[_0x351176];var _0x1f1b4e=createListener(_0x6895('0x7')+_0x192d5f,_0x14b47a);OpenchannelInteractionEvents['on'](_0x192d5f,_0x1f1b4e);}};