Built motion from commit 3c2ce842.|2.6.31
[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 _0x3522=['remove','update','emit','register','length','openchannelInteraction:','./openchannelInteraction.events','save'];(function(_0x262063,_0x4aef94){var _0x2ff61b=function(_0x3775c1){while(--_0x3775c1){_0x262063['push'](_0x262063['shift']());}};_0x2ff61b(++_0x4aef94);}(_0x3522,0x8e));var _0x2352=function(_0x59204e,_0x17bf98){_0x59204e=_0x59204e-0x0;var _0x5b49eb=_0x3522[_0x59204e];return _0x5b49eb;};'use strict';var OpenchannelInteractionEvents=require(_0x2352('0x0'));var events=[_0x2352('0x1'),_0x2352('0x2'),_0x2352('0x3')];function createListener(_0xbd0bfc,_0x31a3c8){return function(_0x53dc95){_0x31a3c8[_0x2352('0x4')](_0xbd0bfc,_0x53dc95);};}function removeListener(_0xefde91,_0x4ca8e6){return function(){OpenchannelInteractionEvents['removeListener'](_0xefde91,_0x4ca8e6);};}exports[_0x2352('0x5')]=function(_0x54e106){for(var _0x211699=0x0,_0x1d2440=events[_0x2352('0x6')];_0x211699<_0x1d2440;_0x211699++){var _0x25431f=events[_0x211699];var _0x5ac012=createListener(_0x2352('0x7')+_0x25431f,_0x54e106);OpenchannelInteractionEvents['on'](_0x25431f,_0x5ac012);}};