3e39c8ee7d71b3f9a49a4064f9d4c388280ea3bd
[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 _0xe603=['save','update','emit','removeListener','./openchannelInteraction.events'];(function(_0x570a2d,_0x3794ce){var _0x57f12c=function(_0x311518){while(--_0x311518){_0x570a2d['push'](_0x570a2d['shift']());}};_0x57f12c(++_0x3794ce);}(_0xe603,0x199));var _0x3e60=function(_0x936164,_0x3d85b9){_0x936164=_0x936164-0x0;var _0x2e0f27=_0xe603[_0x936164];return _0x2e0f27;};'use strict';var OpenchannelInteractionEvents=require(_0x3e60('0x0'));var events=[_0x3e60('0x1'),'remove',_0x3e60('0x2')];function createListener(_0x5ddc8f,_0x890016){return function(_0x52e1d3){_0x890016[_0x3e60('0x3')](_0x5ddc8f,_0x52e1d3);};}function removeListener(_0x7f4c29,_0x466063){return function(){OpenchannelInteractionEvents[_0x3e60('0x4')](_0x7f4c29,_0x466063);};}exports['register']=function(_0x270a0a){for(var _0x47efac=0x0,_0x5df853=events['length'];_0x47efac<_0x5df853;_0x47efac++){var _0x5d65fe=events[_0x47efac];var _0x5014f3=createListener('openchannelInteraction:'+_0x5d65fe,_0x270a0a);OpenchannelInteractionEvents['on'](_0x5d65fe,_0x5014f3);}};