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 _0x2e35=['length','chatInteraction:','./chatInteraction.events','remove','emit'];(function(_0x179e92,_0x2ceccd){var _0x5bc237=function(_0x5cb5d2){while(--_0x5cb5d2){_0x179e92['push'](_0x179e92['shift']());}};_0x5bc237(++_0x2ceccd);}(_0x2e35,0x101));var _0x52e3=function(_0x2899d0,_0x1185a1){_0x2899d0=_0x2899d0-0x0;var _0x503cf6=_0x2e35[_0x2899d0];return _0x503cf6;};'use strict';var ChatInteractionEvents=require(_0x52e3('0x0'));var events=['save',_0x52e3('0x1'),'update'];function createListener(_0x3b24b7,_0x3d042f){return function(_0xc6a6b8){_0x3d042f[_0x52e3('0x2')](_0x3b24b7,_0xc6a6b8);};}function removeListener(_0x536388,_0x144abc){return function(){ChatInteractionEvents['removeListener'](_0x536388,_0x144abc);};}exports['register']=function(_0x583d54){for(var _0x8477a3=0x0,_0x45ea28=events[_0x52e3('0x3')];_0x8477a3<_0x45ea28;_0x8477a3++){var _0x2330e9=events[_0x8477a3];var _0x108b0a=createListener(_0x52e3('0x4')+_0x2330e9,_0x583d54);ChatInteractionEvents['on'](_0x2330e9,_0x108b0a);}};