Built motion from commit (unavailable).|2.4.17
[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 _0x77d2=['register','length','openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit'];(function(_0x1034ee,_0x12998c){var _0x2922af=function(_0x13715a){while(--_0x13715a){_0x1034ee['push'](_0x1034ee['shift']());}};_0x2922af(++_0x12998c);}(_0x77d2,0x133));var _0x277d=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x77d2[_0x4a9fb1];return _0x348672;};'use strict';var OpenchannelInteractionEvents=require(_0x277d('0x0'));var events=[_0x277d('0x1'),_0x277d('0x2'),_0x277d('0x3')];function createListener(_0x49e7d0,_0x2dae4b){return function(_0x4936cb){_0x2dae4b[_0x277d('0x4')](_0x49e7d0,_0x4936cb);};}function removeListener(_0x3f8e25,_0x829884){return function(){OpenchannelInteractionEvents['removeListener'](_0x3f8e25,_0x829884);};}exports[_0x277d('0x5')]=function(_0xd2f722){for(var _0x1042a6=0x0,_0x56abde=events[_0x277d('0x6')];_0x1042a6<_0x56abde;_0x1042a6++){var _0x4ae2fe=events[_0x1042a6];var _0x46bfc0=createListener(_0x277d('0x7')+_0x4ae2fe,_0xd2f722);OpenchannelInteractionEvents['on'](_0x4ae2fe,_0x46bfc0);}};