Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / chatGroup / chatGroup.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 _0x5c0e=['emit','length','./chatGroup.events','save','remove','update'];(function(_0x36f82a,_0x4ec395){var _0x495067=function(_0x2ede56){while(--_0x2ede56){_0x36f82a['push'](_0x36f82a['shift']());}};_0x495067(++_0x4ec395);}(_0x5c0e,0x140));var _0xe5c0=function(_0x467488,_0x38c7ae){_0x467488=_0x467488-0x0;var _0x56107f=_0x5c0e[_0x467488];return _0x56107f;};'use strict';var ChatGroupEvents=require(_0xe5c0('0x0'));var events=[_0xe5c0('0x1'),_0xe5c0('0x2'),_0xe5c0('0x3')];function createListener(_0x45045a,_0x5ea398){return function(_0x574238){_0x5ea398[_0xe5c0('0x4')](_0x45045a,_0x574238);};}function removeListener(_0x46e1a7,_0x7fb7be){return function(){ChatGroupEvents['removeListener'](_0x46e1a7,_0x7fb7be);};}exports['register']=function(_0x61608a){for(var _0xb0b476=0x0,_0x37f7a7=events[_0xe5c0('0x5')];_0xb0b476<_0x37f7a7;_0xb0b476++){var _0x1d00dc=events[_0xb0b476];var _0x5b4908=createListener('chatGroup:'+_0x1d00dc,_0x61608a);ChatGroupEvents['on'](_0x1d00dc,_0x5b4908);}};