Built motion from commit 5b761a7b.|2.5.36
[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 _0x871e=['./chatInteraction.events','remove','update','emit','removeListener','register','length','chatInteraction:'];(function(_0x2e58cd,_0x142ffe){var _0x561b45=function(_0x238d8f){while(--_0x238d8f){_0x2e58cd['push'](_0x2e58cd['shift']());}};_0x561b45(++_0x142ffe);}(_0x871e,0x1b0));var _0xe871=function(_0x164c4f,_0x344ee4){_0x164c4f=_0x164c4f-0x0;var _0x2bd734=_0x871e[_0x164c4f];return _0x2bd734;};'use strict';var ChatInteractionEvents=require(_0xe871('0x0'));var events=['save',_0xe871('0x1'),_0xe871('0x2')];function createListener(_0x1c3eb7,_0x352807){return function(_0x510e9d){_0x352807[_0xe871('0x3')](_0x1c3eb7,_0x510e9d);};}function removeListener(_0x27f82b,_0x4550c1){return function(){ChatInteractionEvents[_0xe871('0x4')](_0x27f82b,_0x4550c1);};}exports[_0xe871('0x5')]=function(_0x2c0254){for(var _0x1068cc=0x0,_0x13ed0e=events[_0xe871('0x6')];_0x1068cc<_0x13ed0e;_0x1068cc++){var _0x1d773f=events[_0x1068cc];var _0x4cf6af=createListener(_0xe871('0x7')+_0x1d773f,_0x2c0254);ChatInteractionEvents['on'](_0x1d773f,_0x4cf6af);}};