Built motion from commit (unavailable).|2.5.3
[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 _0xef0e=['update','emit','removeListener','register','length','save'];(function(_0x134448,_0x591d7b){var _0x2d52a1=function(_0x56b840){while(--_0x56b840){_0x134448['push'](_0x134448['shift']());}};_0x2d52a1(++_0x591d7b);}(_0xef0e,0x9b));var _0xeef0=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xef0e[_0x321bb2];return _0x9c12ed;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0xeef0('0x0'),'remove',_0xeef0('0x1')];function createListener(_0x2ae749,_0x3522bf){return function(_0x354297){_0x3522bf[_0xeef0('0x2')](_0x2ae749,_0x354297);};}function removeListener(_0x1080bc,_0x2edfb9){return function(){ChatInteractionEvents[_0xeef0('0x3')](_0x1080bc,_0x2edfb9);};}exports[_0xeef0('0x4')]=function(_0x4620eb){for(var _0xcc29fe=0x0,_0x1a2cfe=events[_0xeef0('0x5')];_0xcc29fe<_0x1a2cfe;_0xcc29fe++){var _0x4f9bb6=events[_0xcc29fe];var _0x5cdd18=createListener('chatInteraction:'+_0x4f9bb6,_0x4620eb);ChatInteractionEvents['on'](_0x4f9bb6,_0x5cdd18);}};