Built motion from commit 3c2ce842.|2.6.31
[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 _0x1134=['remove','update','emit','removeListener','register','length','./chatInternalMessage.events','save'];(function(_0x2acbce,_0x2b48d3){var _0x1de0e0=function(_0x36ae0e){while(--_0x36ae0e){_0x2acbce['push'](_0x2acbce['shift']());}};_0x1de0e0(++_0x2b48d3);}(_0x1134,0xce));var _0x4113=function(_0x47a3db,_0x332b2d){_0x47a3db=_0x47a3db-0x0;var _0x5dd2d7=_0x1134[_0x47a3db];return _0x5dd2d7;};'use strict';var ChatInternalMessageEvents=require(_0x4113('0x0'));var events=[_0x4113('0x1'),_0x4113('0x2'),_0x4113('0x3')];function createListener(_0x2e97b3,_0x33ef56){return function(_0x255faf){_0x33ef56[_0x4113('0x4')](_0x2e97b3,_0x255faf);};}function removeListener(_0x47f056,_0x182b5e){return function(){ChatInternalMessageEvents[_0x4113('0x5')](_0x47f056,_0x182b5e);};}exports[_0x4113('0x6')]=function(_0x389b67){for(var _0x1f5b0c=0x0,_0x5d0296=events[_0x4113('0x7')];_0x1f5b0c<_0x5d0296;_0x1f5b0c++){var _0x57369f=events[_0x1f5b0c];var _0x28e56d=createListener('chatInternalMessage:'+_0x57369f,_0x389b67);ChatInternalMessageEvents['on'](_0x57369f,_0x28e56d);}};