Built motion from commit 936e8062.|2.5.33
[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 _0xfcfd=['emit','length','./openchannelInteraction.events','save','remove','update'];(function(_0x49b207,_0x408ade){var _0x2dc8fa=function(_0x150975){while(--_0x150975){_0x49b207['push'](_0x49b207['shift']());}};_0x2dc8fa(++_0x408ade);}(_0xfcfd,0x17c));var _0xdfcf=function(_0x41e75c,_0x58592e){_0x41e75c=_0x41e75c-0x0;var _0xd75e28=_0xfcfd[_0x41e75c];return _0xd75e28;};'use strict';var OpenchannelInteractionEvents=require(_0xdfcf('0x0'));var events=[_0xdfcf('0x1'),_0xdfcf('0x2'),_0xdfcf('0x3')];function createListener(_0x3a5c7e,_0x8db17c){return function(_0x503898){_0x8db17c[_0xdfcf('0x4')](_0x3a5c7e,_0x503898);};}function removeListener(_0x4209a0,_0x465b8a){return function(){OpenchannelInteractionEvents['removeListener'](_0x4209a0,_0x465b8a);};}exports['register']=function(_0x2bb146){for(var _0x5d7c8e=0x0,_0xe0cfdc=events[_0xdfcf('0x5')];_0x5d7c8e<_0xe0cfdc;_0x5d7c8e++){var _0x1fea4f=events[_0x5d7c8e];var _0x55af6c=createListener('openchannelInteraction:'+_0x1fea4f,_0x2bb146);OpenchannelInteractionEvents['on'](_0x1fea4f,_0x55af6c);}};