Built motion from commit 97153652.|2.6.26
[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 _0x6b7e=['update','removeListener','register','length','chatInteraction:','./chatInteraction.events','save','remove'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x6b7e,0xa5));var _0xe6b7=function(_0x2495da,_0x11a291){_0x2495da=_0x2495da-0x0;var _0x15575c=_0x6b7e[_0x2495da];return _0x15575c;};'use strict';var ChatInteractionEvents=require(_0xe6b7('0x0'));var events=[_0xe6b7('0x1'),_0xe6b7('0x2'),_0xe6b7('0x3')];function createListener(_0x31568f,_0x427090){return function(_0x5bf9a5){_0x427090['emit'](_0x31568f,_0x5bf9a5);};}function removeListener(_0x44ddff,_0x19d78a){return function(){ChatInteractionEvents[_0xe6b7('0x4')](_0x44ddff,_0x19d78a);};}exports[_0xe6b7('0x5')]=function(_0xb23513){for(var _0x2b0c3f=0x0,_0xb95ee1=events[_0xe6b7('0x6')];_0x2b0c3f<_0xb95ee1;_0x2b0c3f++){var _0x3d1901=events[_0x2b0c3f];var _0x4e0698=createListener(_0xe6b7('0x7')+_0x3d1901,_0xb23513);ChatInteractionEvents['on'](_0x3d1901,_0x4e0698);}};