Built motion from commit 9d0783e6.|2.6.13
[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 _0x0e99=['register','length','./openchannelInteraction.events','save','remove','emit','removeListener'];(function(_0x3e995d,_0x5936ba){var _0x13822f=function(_0x4ae0af){while(--_0x4ae0af){_0x3e995d['push'](_0x3e995d['shift']());}};_0x13822f(++_0x5936ba);}(_0x0e99,0x1c2));var _0x90e9=function(_0xa04235,_0x41ada4){_0xa04235=_0xa04235-0x0;var _0x16caff=_0x0e99[_0xa04235];return _0x16caff;};'use strict';var OpenchannelInteractionEvents=require(_0x90e9('0x0'));var events=[_0x90e9('0x1'),_0x90e9('0x2'),'update'];function createListener(_0x24721f,_0x34226f){return function(_0x440da8){_0x34226f[_0x90e9('0x3')](_0x24721f,_0x440da8);};}function removeListener(_0x240b8b,_0x332c90){return function(){OpenchannelInteractionEvents[_0x90e9('0x4')](_0x240b8b,_0x332c90);};}exports[_0x90e9('0x5')]=function(_0x49503c){for(var _0x3485c9=0x0,_0x50e4c2=events[_0x90e9('0x6')];_0x3485c9<_0x50e4c2;_0x3485c9++){var _0xe85eb9=events[_0x3485c9];var _0x54c15f=createListener('openchannelInteraction:'+_0xe85eb9,_0x49503c);OpenchannelInteractionEvents['on'](_0xe85eb9,_0x54c15f);}};