Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / chatWebsite / chatWebsite.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 _0x11f9=['length','chatWebsite:','save','remove'];(function(_0x206338,_0x2d800b){var _0x2b87f2=function(_0x436c1c){while(--_0x436c1c){_0x206338['push'](_0x206338['shift']());}};_0x2b87f2(++_0x2d800b);}(_0x11f9,0x172));var _0x911f=function(_0xe9963a,_0x668b){_0xe9963a=_0xe9963a-0x0;var _0x13c8a3=_0x11f9[_0xe9963a];return _0x13c8a3;};'use strict';var ChatWebsiteEvents=require('./chatWebsite.events');var events=[_0x911f('0x0'),_0x911f('0x1'),'update'];function createListener(_0x100c7f,_0x4af327){return function(_0xf090d8){_0x4af327['emit'](_0x100c7f,_0xf090d8);};}function removeListener(_0x2dd0bf,_0x3447e2){return function(){ChatWebsiteEvents['removeListener'](_0x2dd0bf,_0x3447e2);};}exports['register']=function(_0x3af9f9){for(var _0x2ee3b3=0x0,_0x5b53c1=events[_0x911f('0x2')];_0x2ee3b3<_0x5b53c1;_0x2ee3b3++){var _0x120edc=events[_0x2ee3b3];var _0x555b2a=createListener(_0x911f('0x3')+_0x120edc,_0x3af9f9);ChatWebsiteEvents['on'](_0x120edc,_0x555b2a);}};