Built motion from commit 9d1906d1.|2.5.40
[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 _0xa70f=['update','emit','register','length','chatInteraction:'];(function(_0x9cd4c3,_0x1c9b2c){var _0x4c9025=function(_0x25b3c6){while(--_0x25b3c6){_0x9cd4c3['push'](_0x9cd4c3['shift']());}};_0x4c9025(++_0x1c9b2c);}(_0xa70f,0xb4));var _0xfa70=function(_0x369ffd,_0x14e093){_0x369ffd=_0x369ffd-0x0;var _0x907cde=_0xa70f[_0x369ffd];return _0x907cde;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=['save','remove',_0xfa70('0x0')];function createListener(_0xdd3582,_0x423c06){return function(_0x22a1e4){_0x423c06[_0xfa70('0x1')](_0xdd3582,_0x22a1e4);};}function removeListener(_0x49c1ad,_0x5c02b5){return function(){ChatInteractionEvents['removeListener'](_0x49c1ad,_0x5c02b5);};}exports[_0xfa70('0x2')]=function(_0x276de4){for(var _0xb80191=0x0,_0x2fd406=events[_0xfa70('0x3')];_0xb80191<_0x2fd406;_0xb80191++){var _0x527aa1=events[_0xb80191];var _0x5c5bb4=createListener(_0xfa70('0x4')+_0x527aa1,_0x276de4);ChatInteractionEvents['on'](_0x527aa1,_0x5c5bb4);}};