Built motion from commit d5e4af8c.|2.6.23
[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 _0x1fad=['removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1fad,0x154));var _0xd1fa=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0x1fad[_0x4b369d];return _0x571a98;};'use strict';var ChatInternalMessageEvents=require(_0xd1fa('0x0'));var events=[_0xd1fa('0x1'),_0xd1fa('0x2'),_0xd1fa('0x3')];function createListener(_0xee3f03,_0x10186d){return function(_0x924a01){_0x10186d['emit'](_0xee3f03,_0x924a01);};}function removeListener(_0x1bfdf1,_0x5e9752){return function(){ChatInternalMessageEvents[_0xd1fa('0x4')](_0x1bfdf1,_0x5e9752);};}exports[_0xd1fa('0x5')]=function(_0x1ad55b){for(var _0xb8338f=0x0,_0x2f4b60=events[_0xd1fa('0x6')];_0xb8338f<_0x2f4b60;_0xb8338f++){var _0x1d8e49=events[_0xb8338f];var _0x1f5039=createListener(_0xd1fa('0x7')+_0x1d8e49,_0x1ad55b);ChatInternalMessageEvents['on'](_0x1d8e49,_0x1f5039);}};