Built motion from commit f0b1811d.|2.6.6
[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 _0x5239=['emit','register','length','./openchannelInteraction.events','save','update'];(function(_0x52f1cb,_0x1f5a5f){var _0x285deb=function(_0x322f88){while(--_0x322f88){_0x52f1cb['push'](_0x52f1cb['shift']());}};_0x285deb(++_0x1f5a5f);}(_0x5239,0x19b));var _0x9523=function(_0x49d4c7,_0x1c4305){_0x49d4c7=_0x49d4c7-0x0;var _0x36bee4=_0x5239[_0x49d4c7];return _0x36bee4;};'use strict';var OpenchannelInteractionEvents=require(_0x9523('0x0'));var events=[_0x9523('0x1'),'remove',_0x9523('0x2')];function createListener(_0x41168a,_0x291bb9){return function(_0x212460){_0x291bb9[_0x9523('0x3')](_0x41168a,_0x212460);};}function removeListener(_0x44a48d,_0xa507eb){return function(){OpenchannelInteractionEvents['removeListener'](_0x44a48d,_0xa507eb);};}exports[_0x9523('0x4')]=function(_0x521a6e){for(var _0x113484=0x0,_0x36f2c2=events[_0x9523('0x5')];_0x113484<_0x36f2c2;_0x113484++){var _0x5dc891=events[_0x113484];var _0x59a9b7=createListener('openchannelInteraction:'+_0x5dc891,_0x521a6e);OpenchannelInteractionEvents['on'](_0x5dc891,_0x59a9b7);}};