Built motion from commit 639a1a7f.|2.6.19
[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 _0x4529=['register','length','chatInteraction:','./chatInteraction.events','update','emit','removeListener'];(function(_0x525bcf,_0x428c0c){var _0x4c3486=function(_0xf87f2){while(--_0xf87f2){_0x525bcf['push'](_0x525bcf['shift']());}};_0x4c3486(++_0x428c0c);}(_0x4529,0xea));var _0x9452=function(_0x3c560a,_0x542333){_0x3c560a=_0x3c560a-0x0;var _0x332610=_0x4529[_0x3c560a];return _0x332610;};'use strict';var ChatInteractionEvents=require(_0x9452('0x0'));var events=['save','remove',_0x9452('0x1')];function createListener(_0x25c708,_0x5c37af){return function(_0x50b50a){_0x5c37af[_0x9452('0x2')](_0x25c708,_0x50b50a);};}function removeListener(_0x7ccd5f,_0x4d0690){return function(){ChatInteractionEvents[_0x9452('0x3')](_0x7ccd5f,_0x4d0690);};}exports[_0x9452('0x4')]=function(_0x2f1f58){for(var _0xd8abf6=0x0,_0x267165=events[_0x9452('0x5')];_0xd8abf6<_0x267165;_0xd8abf6++){var _0x326fcd=events[_0xd8abf6];var _0x17d565=createListener(_0x9452('0x6')+_0x326fcd,_0x2f1f58);ChatInteractionEvents['on'](_0x326fcd,_0x17d565);}};