Built motion from commit (unavailable).|2.6.0
[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 _0x9ea5=['save','update','emit','register','./chatInteraction.events'];(function(_0x457740,_0x8a8635){var _0x2a010d=function(_0x2ac0b5){while(--_0x2ac0b5){_0x457740['push'](_0x457740['shift']());}};_0x2a010d(++_0x8a8635);}(_0x9ea5,0x1ee));var _0x59ea=function(_0x513a31,_0x185755){_0x513a31=_0x513a31-0x0;var _0x575f50=_0x9ea5[_0x513a31];return _0x575f50;};'use strict';var ChatInteractionEvents=require(_0x59ea('0x0'));var events=[_0x59ea('0x1'),'remove',_0x59ea('0x2')];function createListener(_0x2b1d8c,_0x3c5457){return function(_0x10b1c5){_0x3c5457[_0x59ea('0x3')](_0x2b1d8c,_0x10b1c5);};}function removeListener(_0xc3f15,_0x3d1dd3){return function(){ChatInteractionEvents['removeListener'](_0xc3f15,_0x3d1dd3);};}exports[_0x59ea('0x4')]=function(_0x14f7e6){for(var _0x58b5fd=0x0,_0x157ee8=events['length'];_0x58b5fd<_0x157ee8;_0x58b5fd++){var _0x11ae70=events[_0x58b5fd];var _0x4cd098=createListener('chatInteraction:'+_0x11ae70,_0x14f7e6);ChatInteractionEvents['on'](_0x11ae70,_0x4cd098);}};