Built motion from commit (unavailable).|2.4.18
[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 _0x4b21=['save','update','removeListener','register','length','./openchannelInteraction.events'];(function(_0xb7a459,_0xc13228){var _0x104ab5=function(_0x186a0e){while(--_0x186a0e){_0xb7a459['push'](_0xb7a459['shift']());}};_0x104ab5(++_0xc13228);}(_0x4b21,0x8f));var _0x14b2=function(_0x45b5e3,_0x5cb489){_0x45b5e3=_0x45b5e3-0x0;var _0x1dba41=_0x4b21[_0x45b5e3];return _0x1dba41;};'use strict';var OpenchannelInteractionEvents=require(_0x14b2('0x0'));var events=[_0x14b2('0x1'),'remove',_0x14b2('0x2')];function createListener(_0x263fbb,_0x10680d){return function(_0x1c27f3){_0x10680d['emit'](_0x263fbb,_0x1c27f3);};}function removeListener(_0x3f775f,_0x4173ce){return function(){OpenchannelInteractionEvents[_0x14b2('0x3')](_0x3f775f,_0x4173ce);};}exports[_0x14b2('0x4')]=function(_0x17fba0){for(var _0x18d314=0x0,_0x75f4a1=events[_0x14b2('0x5')];_0x18d314<_0x75f4a1;_0x18d314++){var _0x154e88=events[_0x18d314];var _0x57b19b=createListener('openchannelInteraction:'+_0x154e88,_0x17fba0);OpenchannelInteractionEvents['on'](_0x154e88,_0x57b19b);}};