555542f242d4d8f7d3acd8beb1807812a242a5ed
[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 _0xda3c=['./chatInteraction.events','save','remove','update','emit','removeListener','register','length','chatInteraction:'];(function(_0x3f993e,_0x2d5757){var _0x39c135=function(_0x39e00b){while(--_0x39e00b){_0x3f993e['push'](_0x3f993e['shift']());}};_0x39c135(++_0x2d5757);}(_0xda3c,0x1b9));var _0xcda3=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0xda3c[_0x40a045];return _0x1a687c;};'use strict';var ChatInteractionEvents=require(_0xcda3('0x0'));var events=[_0xcda3('0x1'),_0xcda3('0x2'),_0xcda3('0x3')];function createListener(_0x4ab139,_0x503200){return function(_0x5f0c7f){_0x503200[_0xcda3('0x4')](_0x4ab139,_0x5f0c7f);};}function removeListener(_0x387dc1,_0x2626ae){return function(){ChatInteractionEvents[_0xcda3('0x5')](_0x387dc1,_0x2626ae);};}exports[_0xcda3('0x6')]=function(_0x1f3de6){for(var _0x2fe7c4=0x0,_0x5d600f=events[_0xcda3('0x7')];_0x2fe7c4<_0x5d600f;_0x2fe7c4++){var _0x39ebe6=events[_0x2fe7c4];var _0x3ab5a2=createListener(_0xcda3('0x8')+_0x39ebe6,_0x1f3de6);ChatInteractionEvents['on'](_0x39ebe6,_0x3ab5a2);}};