Built motion from commit 1fa89557.|2.6.10
[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 _0xbae0=['remove','update','emit','removeListener','register','length','chatInteraction:','save'];(function(_0x572224,_0x1ff3d7){var _0x4cbec5=function(_0x69d18e){while(--_0x69d18e){_0x572224['push'](_0x572224['shift']());}};_0x4cbec5(++_0x1ff3d7);}(_0xbae0,0x16f));var _0x0bae=function(_0x55f8b4,_0x43f30d){_0x55f8b4=_0x55f8b4-0x0;var _0x2475f9=_0xbae0[_0x55f8b4];return _0x2475f9;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x0bae('0x0'),_0x0bae('0x1'),_0x0bae('0x2')];function createListener(_0x282d57,_0x42dee3){return function(_0x51de3d){_0x42dee3[_0x0bae('0x3')](_0x282d57,_0x51de3d);};}function removeListener(_0x2c3d94,_0x4e4310){return function(){ChatInteractionEvents[_0x0bae('0x4')](_0x2c3d94,_0x4e4310);};}exports[_0x0bae('0x5')]=function(_0x2a72bc){for(var _0x582ec7=0x0,_0x15a5a7=events[_0x0bae('0x6')];_0x582ec7<_0x15a5a7;_0x582ec7++){var _0xc93597=events[_0x582ec7];var _0x3e3f9f=createListener(_0x0bae('0x7')+_0xc93597,_0x2a72bc);ChatInteractionEvents['on'](_0xc93597,_0x3e3f9f);}};