8da52c0bb7e2141d0a729ee3f463d02ee1e4cf11
[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 _0x5cf2=['length','openchannelInteraction:','save','remove','update','removeListener','register'];(function(_0x259aaf,_0x5dbec1){var _0x366663=function(_0x24a61a){while(--_0x24a61a){_0x259aaf['push'](_0x259aaf['shift']());}};_0x366663(++_0x5dbec1);}(_0x5cf2,0x79));var _0x25cf=function(_0x595013,_0x65a215){_0x595013=_0x595013-0x0;var _0x2a29e3=_0x5cf2[_0x595013];return _0x2a29e3;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0x25cf('0x0'),_0x25cf('0x1'),_0x25cf('0x2')];function createListener(_0x21d698,_0x2511b2){return function(_0x38f934){_0x2511b2['emit'](_0x21d698,_0x38f934);};}function removeListener(_0x415bff,_0x56be9c){return function(){OpenchannelInteractionEvents[_0x25cf('0x3')](_0x415bff,_0x56be9c);};}exports[_0x25cf('0x4')]=function(_0x472b3f){for(var _0x5e00c1=0x0,_0x4dc8a0=events[_0x25cf('0x5')];_0x5e00c1<_0x4dc8a0;_0x5e00c1++){var _0x4388c4=events[_0x5e00c1];var _0x483792=createListener(_0x25cf('0x6')+_0x4388c4,_0x472b3f);OpenchannelInteractionEvents['on'](_0x4388c4,_0x483792);}};