Built motion from commit (unavailable).|2.5.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 _0xe087=['length','chatInteraction:','./chatInteraction.events','save','remove','update','removeListener'];(function(_0x5ab11f,_0x5d37df){var _0x19f216=function(_0x5245ae){while(--_0x5245ae){_0x5ab11f['push'](_0x5ab11f['shift']());}};_0x19f216(++_0x5d37df);}(_0xe087,0x16e));var _0x7e08=function(_0x80325c,_0x533fcf){_0x80325c=_0x80325c-0x0;var _0x45c539=_0xe087[_0x80325c];return _0x45c539;};'use strict';var ChatInteractionEvents=require(_0x7e08('0x0'));var events=[_0x7e08('0x1'),_0x7e08('0x2'),_0x7e08('0x3')];function createListener(_0x2bcd21,_0x3a7428){return function(_0x372b4c){_0x3a7428['emit'](_0x2bcd21,_0x372b4c);};}function removeListener(_0x189bf5,_0x14c72c){return function(){ChatInteractionEvents[_0x7e08('0x4')](_0x189bf5,_0x14c72c);};}exports['register']=function(_0xe47260){for(var _0x4e4757=0x0,_0x337171=events[_0x7e08('0x5')];_0x4e4757<_0x337171;_0x4e4757++){var _0x24f5ae=events[_0x4e4757];var _0x5f1e5f=createListener(_0x7e08('0x6')+_0x24f5ae,_0xe47260);ChatInteractionEvents['on'](_0x24f5ae,_0x5f1e5f);}};