Built motion from commit 14588770.|2.5.38
[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 _0x6113=['./chatInteraction.events','save','remove','emit','removeListener','chatInteraction:'];(function(_0x13ea00,_0x12f610){var _0x1f7347=function(_0x34ae63){while(--_0x34ae63){_0x13ea00['push'](_0x13ea00['shift']());}};_0x1f7347(++_0x12f610);}(_0x6113,0x1c8));var _0x3611=function(_0x2a9453,_0x40e729){_0x2a9453=_0x2a9453-0x0;var _0x5eb5e7=_0x6113[_0x2a9453];return _0x5eb5e7;};'use strict';var ChatInteractionEvents=require(_0x3611('0x0'));var events=[_0x3611('0x1'),_0x3611('0x2'),'update'];function createListener(_0xf0e7c6,_0x3952bd){return function(_0x37f54d){_0x3952bd[_0x3611('0x3')](_0xf0e7c6,_0x37f54d);};}function removeListener(_0x3cc782,_0x1661c9){return function(){ChatInteractionEvents[_0x3611('0x4')](_0x3cc782,_0x1661c9);};}exports['register']=function(_0x377654){for(var _0x18306f=0x0,_0x12a094=events['length'];_0x18306f<_0x12a094;_0x18306f++){var _0x47435b=events[_0x18306f];var _0x454512=createListener(_0x3611('0x5')+_0x47435b,_0x377654);ChatInteractionEvents['on'](_0x47435b,_0x454512);}};