ec9e093d01034f19c20fa5a2a1f9800d7fe67715
[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 _0x2922=['./chatInteraction.events','save','remove','update','emit','removeListener','register','length','chatInteraction:'];(function(_0x36bfe3,_0x358938){var _0x9b0436=function(_0x86e47d){while(--_0x86e47d){_0x36bfe3['push'](_0x36bfe3['shift']());}};_0x9b0436(++_0x358938);}(_0x2922,0x6c));var _0x2292=function(_0x55e886,_0xa45171){_0x55e886=_0x55e886-0x0;var _0x5e138e=_0x2922[_0x55e886];return _0x5e138e;};'use strict';var ChatInteractionEvents=require(_0x2292('0x0'));var events=[_0x2292('0x1'),_0x2292('0x2'),_0x2292('0x3')];function createListener(_0x2764a4,_0x298cd0){return function(_0x570042){_0x298cd0[_0x2292('0x4')](_0x2764a4,_0x570042);};}function removeListener(_0x2110fb,_0xb76c25){return function(){ChatInteractionEvents[_0x2292('0x5')](_0x2110fb,_0xb76c25);};}exports[_0x2292('0x6')]=function(_0x582778){for(var _0x45e6dd=0x0,_0x567103=events[_0x2292('0x7')];_0x45e6dd<_0x567103;_0x45e6dd++){var _0x36a8b8=events[_0x45e6dd];var _0x16cf33=createListener(_0x2292('0x8')+_0x36a8b8,_0x582778);ChatInteractionEvents['on'](_0x36a8b8,_0x16cf33);}};