Built motion from commit da617fac.|2.6.6
[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 _0x8b91=['emit','removeListener','register','chatInteraction:','./chatInteraction.events','save','remove'];(function(_0x5e20f6,_0x427b74){var _0x4e96d3=function(_0x1a7d3d){while(--_0x1a7d3d){_0x5e20f6['push'](_0x5e20f6['shift']());}};_0x4e96d3(++_0x427b74);}(_0x8b91,0x17e));var _0x18b9=function(_0x1c0abe,_0x28a701){_0x1c0abe=_0x1c0abe-0x0;var _0x24d9bf=_0x8b91[_0x1c0abe];return _0x24d9bf;};'use strict';var ChatInteractionEvents=require(_0x18b9('0x0'));var events=[_0x18b9('0x1'),_0x18b9('0x2'),'update'];function createListener(_0x194721,_0x3fb7d4){return function(_0xfeb4d3){_0x3fb7d4[_0x18b9('0x3')](_0x194721,_0xfeb4d3);};}function removeListener(_0xa87b43,_0x4071e3){return function(){ChatInteractionEvents[_0x18b9('0x4')](_0xa87b43,_0x4071e3);};}exports[_0x18b9('0x5')]=function(_0x10aa74){for(var _0x1c4e97=0x0,_0x4990c5=events['length'];_0x1c4e97<_0x4990c5;_0x1c4e97++){var _0x1839cf=events[_0x1c4e97];var _0x45dfcd=createListener(_0x18b9('0x6')+_0x1839cf,_0x10aa74);ChatInteractionEvents['on'](_0x1839cf,_0x45dfcd);}};