Built motion from commit (unavailable).|2.5.5
[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 _0x3fd8=['emit','register','length','chatInteraction:','./chatInteraction.events','save','remove','update'];(function(_0x50fef8,_0x22caba){var _0x670b00=function(_0x2492ff){while(--_0x2492ff){_0x50fef8['push'](_0x50fef8['shift']());}};_0x670b00(++_0x22caba);}(_0x3fd8,0x64));var _0x83fd=function(_0x3fe14c,_0x321c16){_0x3fe14c=_0x3fe14c-0x0;var _0x44ffd8=_0x3fd8[_0x3fe14c];return _0x44ffd8;};'use strict';var ChatInteractionEvents=require(_0x83fd('0x0'));var events=[_0x83fd('0x1'),_0x83fd('0x2'),_0x83fd('0x3')];function createListener(_0x3a68e3,_0xa395dc){return function(_0x286bee){_0xa395dc[_0x83fd('0x4')](_0x3a68e3,_0x286bee);};}function removeListener(_0x2b50eb,_0x227418){return function(){ChatInteractionEvents['removeListener'](_0x2b50eb,_0x227418);};}exports[_0x83fd('0x5')]=function(_0x40f360){for(var _0x254484=0x0,_0x1f302e=events[_0x83fd('0x6')];_0x254484<_0x1f302e;_0x254484++){var _0x3a4941=events[_0x254484];var _0x4fdd73=createListener(_0x83fd('0x7')+_0x3a4941,_0x40f360);ChatInteractionEvents['on'](_0x3a4941,_0x4fdd73);}};