Built motion from commit (unavailable).|2.5.10
[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 _0xbb4f=['./openchannelInteraction.events','save','remove','update','removeListener','length','openchannelInteraction:'];(function(_0x65c0bb,_0x82e7b8){var _0x320bd5=function(_0x6e1675){while(--_0x6e1675){_0x65c0bb['push'](_0x65c0bb['shift']());}};_0x320bd5(++_0x82e7b8);}(_0xbb4f,0xa8));var _0xfbb4=function(_0x396166,_0x52d693){_0x396166=_0x396166-0x0;var _0x5dab50=_0xbb4f[_0x396166];return _0x5dab50;};'use strict';var OpenchannelInteractionEvents=require(_0xfbb4('0x0'));var events=[_0xfbb4('0x1'),_0xfbb4('0x2'),_0xfbb4('0x3')];function createListener(_0x5b6c2e,_0x233b18){return function(_0x41fb04){_0x233b18['emit'](_0x5b6c2e,_0x41fb04);};}function removeListener(_0x36ebf7,_0x429d90){return function(){OpenchannelInteractionEvents[_0xfbb4('0x4')](_0x36ebf7,_0x429d90);};}exports['register']=function(_0x13ebd7){for(var _0x45e5d6=0x0,_0x48a357=events[_0xfbb4('0x5')];_0x45e5d6<_0x48a357;_0x45e5d6++){var _0x2719ab=events[_0x45e5d6];var _0x1d72cf=createListener(_0xfbb4('0x6')+_0x2719ab,_0x13ebd7);OpenchannelInteractionEvents['on'](_0x2719ab,_0x1d72cf);}};