Built motion from commit 994c64e1.|2.6.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 _0x0c38=['./openchannelInteraction.events','remove','update','emit','removeListener','register','length','openchannelInteraction:'];(function(_0x4fbfd9,_0x3ab91a){var _0x31dc94=function(_0x11e53b){while(--_0x11e53b){_0x4fbfd9['push'](_0x4fbfd9['shift']());}};_0x31dc94(++_0x3ab91a);}(_0x0c38,0xb8));var _0x80c3=function(_0x4263c6,_0x4b7d56){_0x4263c6=_0x4263c6-0x0;var _0x5dbd05=_0x0c38[_0x4263c6];return _0x5dbd05;};'use strict';var OpenchannelInteractionEvents=require(_0x80c3('0x0'));var events=['save',_0x80c3('0x1'),_0x80c3('0x2')];function createListener(_0x4f4c81,_0x11aba1){return function(_0x1b64ea){_0x11aba1[_0x80c3('0x3')](_0x4f4c81,_0x1b64ea);};}function removeListener(_0x567b6d,_0x480ad2){return function(){OpenchannelInteractionEvents[_0x80c3('0x4')](_0x567b6d,_0x480ad2);};}exports[_0x80c3('0x5')]=function(_0x44d668){for(var _0x4500e9=0x0,_0x528079=events[_0x80c3('0x6')];_0x4500e9<_0x528079;_0x4500e9++){var _0x1ee678=events[_0x4500e9];var _0x1a05ca=createListener(_0x80c3('0x7')+_0x1ee678,_0x44d668);OpenchannelInteractionEvents['on'](_0x1ee678,_0x1a05ca);}};