Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.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 _0x4bd1=['removeListener','register','length','chatInternalMessage:','save','update','emit'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x4bd1,0x90));var _0x14bd=function(_0x47a7d0,_0x4e182d){_0x47a7d0=_0x47a7d0-0x0;var _0xb9bd08=_0x4bd1[_0x47a7d0];return _0xb9bd08;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x14bd('0x0'),'remove',_0x14bd('0x1')];function createListener(_0xa0d344,_0x50d79a){return function(_0x17e7b6){_0x50d79a[_0x14bd('0x2')](_0xa0d344,_0x17e7b6);};}function removeListener(_0x51fcdb,_0x4080e1){return function(){ChatInternalMessageEvents[_0x14bd('0x3')](_0x51fcdb,_0x4080e1);};}exports[_0x14bd('0x4')]=function(_0x31b468){for(var _0x5c4680=0x0,_0x35806e=events[_0x14bd('0x5')];_0x5c4680<_0x35806e;_0x5c4680++){var _0xb06dbf=events[_0x5c4680];var _0x2e9a2f=createListener(_0x14bd('0x6')+_0xb06dbf,_0x31b468);ChatInternalMessageEvents['on'](_0xb06dbf,_0x2e9a2f);}};