Built motion from commit 06a208af.|2.6.26
[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 _0x24c5=['update','emit','removeListener','register','length','save','remove'];(function(_0x413812,_0x2ad176){var _0x51cb42=function(_0x37ce06){while(--_0x37ce06){_0x413812['push'](_0x413812['shift']());}};_0x51cb42(++_0x2ad176);}(_0x24c5,0x163));var _0x524c=function(_0x231926,_0x45a45e){_0x231926=_0x231926-0x0;var _0x45aaad=_0x24c5[_0x231926];return _0x45aaad;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x524c('0x0'),_0x524c('0x1'),_0x524c('0x2')];function createListener(_0x5c2cf3,_0x31927f){return function(_0x100e5f){_0x31927f[_0x524c('0x3')](_0x5c2cf3,_0x100e5f);};}function removeListener(_0x752702,_0x475c98){return function(){ChatInteractionEvents[_0x524c('0x4')](_0x752702,_0x475c98);};}exports[_0x524c('0x5')]=function(_0x19245d){for(var _0x452778=0x0,_0x1be1ed=events[_0x524c('0x6')];_0x452778<_0x1be1ed;_0x452778++){var _0x5e7e54=events[_0x452778];var _0x114d0b=createListener('chatInteraction:'+_0x5e7e54,_0x19245d);ChatInteractionEvents['on'](_0x5e7e54,_0x114d0b);}};