Built motion from commit 52c8a02d.|2.6.29
[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 _0xce41=['removeListener','register','length','chatInteraction:','./chatInteraction.events','save','update','emit'];(function(_0x52bbb5,_0x4292f2){var _0xc6e5f3=function(_0x237fbd){while(--_0x237fbd){_0x52bbb5['push'](_0x52bbb5['shift']());}};_0xc6e5f3(++_0x4292f2);}(_0xce41,0xf4));var _0x1ce4=function(_0x1cec84,_0x101ec2){_0x1cec84=_0x1cec84-0x0;var _0x12b7d3=_0xce41[_0x1cec84];return _0x12b7d3;};'use strict';var ChatInteractionEvents=require(_0x1ce4('0x0'));var events=[_0x1ce4('0x1'),'remove',_0x1ce4('0x2')];function createListener(_0x230acf,_0x5d6ede){return function(_0x316e7e){_0x5d6ede[_0x1ce4('0x3')](_0x230acf,_0x316e7e);};}function removeListener(_0x49e148,_0x3ce892){return function(){ChatInteractionEvents[_0x1ce4('0x4')](_0x49e148,_0x3ce892);};}exports[_0x1ce4('0x5')]=function(_0x154b6d){for(var _0x359891=0x0,_0x1e7123=events[_0x1ce4('0x6')];_0x359891<_0x1e7123;_0x359891++){var _0x5ca860=events[_0x359891];var _0x576e06=createListener(_0x1ce4('0x7')+_0x5ca860,_0x154b6d);ChatInteractionEvents['on'](_0x5ca860,_0x576e06);}};