Built motion from commit 775e2a94.|2.6.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 _0xbf22=['emit','removeListener','register','chatInteraction:','./chatInteraction.events','save','update'];(function(_0x2bdd39,_0x2edfb1){var _0x2fc413=function(_0x10841a){while(--_0x10841a){_0x2bdd39['push'](_0x2bdd39['shift']());}};_0x2fc413(++_0x2edfb1);}(_0xbf22,0x11c));var _0x2bf2=function(_0x25bcb3,_0x3ed46f){_0x25bcb3=_0x25bcb3-0x0;var _0x1d8c1b=_0xbf22[_0x25bcb3];return _0x1d8c1b;};'use strict';var ChatInteractionEvents=require(_0x2bf2('0x0'));var events=[_0x2bf2('0x1'),'remove',_0x2bf2('0x2')];function createListener(_0x571932,_0x303af6){return function(_0x411ad2){_0x303af6[_0x2bf2('0x3')](_0x571932,_0x411ad2);};}function removeListener(_0x5bdfeb,_0x9b0cb4){return function(){ChatInteractionEvents[_0x2bf2('0x4')](_0x5bdfeb,_0x9b0cb4);};}exports[_0x2bf2('0x5')]=function(_0x938cec){for(var _0x317aaf=0x0,_0x1f21ea=events['length'];_0x317aaf<_0x1f21ea;_0x317aaf++){var _0xb3a43f=events[_0x317aaf];var _0xf0d6e8=createListener(_0x2bf2('0x6')+_0xb3a43f,_0x938cec);ChatInteractionEvents['on'](_0xb3a43f,_0xf0d6e8);}};