Built motion from commit (unavailable).|2.5.1
[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 _0x3f92=['openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit','removeListener','register','length'];(function(_0xbbcdd4,_0x5cfc23){var _0x13caf3=function(_0x1ab1b2){while(--_0x1ab1b2){_0xbbcdd4['push'](_0xbbcdd4['shift']());}};_0x13caf3(++_0x5cfc23);}(_0x3f92,0xe2));var _0x23f9=function(_0x11c3e9,_0x5b55d2){_0x11c3e9=_0x11c3e9-0x0;var _0x5cf55c=_0x3f92[_0x11c3e9];return _0x5cf55c;};'use strict';var OpenchannelInteractionEvents=require(_0x23f9('0x0'));var events=[_0x23f9('0x1'),_0x23f9('0x2'),_0x23f9('0x3')];function createListener(_0x450b8e,_0x4c094f){return function(_0x1850e4){_0x4c094f[_0x23f9('0x4')](_0x450b8e,_0x1850e4);};}function removeListener(_0x34430d,_0x48cf2c){return function(){OpenchannelInteractionEvents[_0x23f9('0x5')](_0x34430d,_0x48cf2c);};}exports[_0x23f9('0x6')]=function(_0x15df8d){for(var _0x14db1f=0x0,_0x2221c1=events[_0x23f9('0x7')];_0x14db1f<_0x2221c1;_0x14db1f++){var _0x4a2dc6=events[_0x14db1f];var _0x317144=createListener(_0x23f9('0x8')+_0x4a2dc6,_0x15df8d);OpenchannelInteractionEvents['on'](_0x4a2dc6,_0x317144);}};