Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / chatInteraction / chatInteraction.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 _0x9eb5=['save','emit','register','length','./chatInteraction.events'];(function(_0x50aa04,_0x13ec6d){var _0x4fe89e=function(_0x56232c){while(--_0x56232c){_0x50aa04['push'](_0x50aa04['shift']());}};_0x4fe89e(++_0x13ec6d);}(_0x9eb5,0x15d));var _0x59eb=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x9eb5[_0x3dd15e];return _0x231fd0;};'use strict';var ChatInteractionEvents=require(_0x59eb('0x0'));var events=[_0x59eb('0x1'),'remove','update'];function createListener(_0x2629cf,_0x9807bb){return function(_0x5ac8f3){_0x9807bb[_0x59eb('0x2')](_0x2629cf,_0x5ac8f3);};}function removeListener(_0x463284,_0x206567){return function(){ChatInteractionEvents['removeListener'](_0x463284,_0x206567);};}exports[_0x59eb('0x3')]=function(_0x3c88da){for(var _0x1a767a=0x0,_0x1ea153=events[_0x59eb('0x4')];_0x1a767a<_0x1ea153;_0x1a767a++){var _0x3853e8=events[_0x1a767a];var _0x1ed195=createListener('chatInteraction:'+_0x3853e8,_0x3c88da);ChatInteractionEvents['on'](_0x3853e8,_0x1ed195);}};