Built motion from commit (unavailable).|2.5.15
[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 _0xd3db=['save','remove','emit','removeListener','register','length'];(function(_0x1a79b2,_0x43c289){var _0x553ae5=function(_0x5f1e5e){while(--_0x5f1e5e){_0x1a79b2['push'](_0x1a79b2['shift']());}};_0x553ae5(++_0x43c289);}(_0xd3db,0x1d4));var _0xbd3d=function(_0x61a7b7,_0x5a911d){_0x61a7b7=_0x61a7b7-0x0;var _0x228c6b=_0xd3db[_0x61a7b7];return _0x228c6b;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0xbd3d('0x0'),_0xbd3d('0x1'),'update'];function createListener(_0x5e648e,_0x3faf92){return function(_0x1d1615){_0x3faf92[_0xbd3d('0x2')](_0x5e648e,_0x1d1615);};}function removeListener(_0x3d0870,_0x21aa0f){return function(){ChatInteractionEvents[_0xbd3d('0x3')](_0x3d0870,_0x21aa0f);};}exports[_0xbd3d('0x4')]=function(_0x25c775){for(var _0x4e644d=0x0,_0x141b03=events[_0xbd3d('0x5')];_0x4e644d<_0x141b03;_0x4e644d++){var _0x12203a=events[_0x4e644d];var _0x3247fd=createListener('chatInteraction:'+_0x12203a,_0x25c775);ChatInteractionEvents['on'](_0x12203a,_0x3247fd);}};