Built motion from commit a679711e.|2.6.15
[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 _0xfc4d=['length','chatInteraction:','./chatInteraction.events','save','remove','update','emit','removeListener','register'];(function(_0x5bf8cb,_0x4ab14e){var _0xc39bf1=function(_0x5e69f4){while(--_0x5e69f4){_0x5bf8cb['push'](_0x5bf8cb['shift']());}};_0xc39bf1(++_0x4ab14e);}(_0xfc4d,0xc8));var _0xdfc4=function(_0x1385f0,_0x5550bb){_0x1385f0=_0x1385f0-0x0;var _0x36ca00=_0xfc4d[_0x1385f0];return _0x36ca00;};'use strict';var ChatInteractionEvents=require(_0xdfc4('0x0'));var events=[_0xdfc4('0x1'),_0xdfc4('0x2'),_0xdfc4('0x3')];function createListener(_0x32e653,_0x449b9c){return function(_0x3abdf2){_0x449b9c[_0xdfc4('0x4')](_0x32e653,_0x3abdf2);};}function removeListener(_0x2884d1,_0x3ea716){return function(){ChatInteractionEvents[_0xdfc4('0x5')](_0x2884d1,_0x3ea716);};}exports[_0xdfc4('0x6')]=function(_0x5cf983){for(var _0x447526=0x0,_0x19ced9=events[_0xdfc4('0x7')];_0x447526<_0x19ced9;_0x447526++){var _0x1123c8=events[_0x447526];var _0x5cb59b=createListener(_0xdfc4('0x8')+_0x1123c8,_0x5cf983);ChatInteractionEvents['on'](_0x1123c8,_0x5cb59b);}};