Built motion from commit efa66e19.|2.6.22
[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 _0x3bcb=['./chatInteraction.events','save','remove','update','removeListener','register','length'];(function(_0x3c08f7,_0xae80a8){var _0x32d001=function(_0x308fb5){while(--_0x308fb5){_0x3c08f7['push'](_0x3c08f7['shift']());}};_0x32d001(++_0xae80a8);}(_0x3bcb,0x1b2));var _0xb3bc=function(_0x24b00f,_0x5cb40c){_0x24b00f=_0x24b00f-0x0;var _0x2d816d=_0x3bcb[_0x24b00f];return _0x2d816d;};'use strict';var ChatInteractionEvents=require(_0xb3bc('0x0'));var events=[_0xb3bc('0x1'),_0xb3bc('0x2'),_0xb3bc('0x3')];function createListener(_0x4d8edf,_0x29c61e){return function(_0x5c786d){_0x29c61e['emit'](_0x4d8edf,_0x5c786d);};}function removeListener(_0x189fbb,_0x20a221){return function(){ChatInteractionEvents[_0xb3bc('0x4')](_0x189fbb,_0x20a221);};}exports[_0xb3bc('0x5')]=function(_0x1c6f9e){for(var _0x5af799=0x0,_0x3071eb=events[_0xb3bc('0x6')];_0x5af799<_0x3071eb;_0x5af799++){var _0x4b6ac5=events[_0x5af799];var _0xefd3af=createListener('chatInteraction:'+_0x4b6ac5,_0x1c6f9e);ChatInteractionEvents['on'](_0x4b6ac5,_0xefd3af);}};