Built motion from commit 85328c08.|2.5.50
[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 _0xaf65=['save','remove','update','emit','removeListener','register','chatInteraction:','./chatInteraction.events'];(function(_0x42b2f4,_0x460144){var _0x1bb349=function(_0xfbda02){while(--_0xfbda02){_0x42b2f4['push'](_0x42b2f4['shift']());}};_0x1bb349(++_0x460144);}(_0xaf65,0x1c7));var _0x5af6=function(_0x50ab8f,_0x18237d){_0x50ab8f=_0x50ab8f-0x0;var _0x298d39=_0xaf65[_0x50ab8f];return _0x298d39;};'use strict';var ChatInteractionEvents=require(_0x5af6('0x0'));var events=[_0x5af6('0x1'),_0x5af6('0x2'),_0x5af6('0x3')];function createListener(_0x4f1e94,_0x1921cb){return function(_0x5889b8){_0x1921cb[_0x5af6('0x4')](_0x4f1e94,_0x5889b8);};}function removeListener(_0xd172c7,_0x401021){return function(){ChatInteractionEvents[_0x5af6('0x5')](_0xd172c7,_0x401021);};}exports[_0x5af6('0x6')]=function(_0x1744d3){for(var _0x2be59b=0x0,_0x45b67d=events['length'];_0x2be59b<_0x45b67d;_0x2be59b++){var _0x3f64df=events[_0x2be59b];var _0x5de271=createListener(_0x5af6('0x7')+_0x3f64df,_0x1744d3);ChatInteractionEvents['on'](_0x3f64df,_0x5de271);}};