Built motion from commit 19a84241.|2.5.34
[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 _0x0b35=['chatInteraction:','update','emit','removeListener','length'];(function(_0x4f9105,_0x587b0c){var _0x9f8a21=function(_0x4e5a64){while(--_0x4e5a64){_0x4f9105['push'](_0x4f9105['shift']());}};_0x9f8a21(++_0x587b0c);}(_0x0b35,0xbf));var _0x50b3=function(_0x14cc99,_0x2388ac){_0x14cc99=_0x14cc99-0x0;var _0x1cba02=_0x0b35[_0x14cc99];return _0x1cba02;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=['save','remove',_0x50b3('0x0')];function createListener(_0x58e7d4,_0x4cd749){return function(_0x56066b){_0x4cd749[_0x50b3('0x1')](_0x58e7d4,_0x56066b);};}function removeListener(_0xf7bdd8,_0x5da979){return function(){ChatInteractionEvents[_0x50b3('0x2')](_0xf7bdd8,_0x5da979);};}exports['register']=function(_0x3b0056){for(var _0x226ea7=0x0,_0x11d586=events[_0x50b3('0x3')];_0x226ea7<_0x11d586;_0x226ea7++){var _0x2cb610=events[_0x226ea7];var _0x578326=createListener(_0x50b3('0x4')+_0x2cb610,_0x3b0056);ChatInteractionEvents['on'](_0x2cb610,_0x578326);}};