Built motion from commit c0cdc9d8.|2.6.28
[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 _0x7712=['length','chatInternalMessage:','update','emit'];(function(_0x1c2a1e,_0x1da05c){var _0x3a3cd9=function(_0x30cb87){while(--_0x30cb87){_0x1c2a1e['push'](_0x1c2a1e['shift']());}};_0x3a3cd9(++_0x1da05c);}(_0x7712,0x1de));var _0x2771=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x7712[_0x1facfa];return _0x9ec701;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=['save','remove',_0x2771('0x0')];function createListener(_0x43c5cf,_0x154435){return function(_0xcbaf81){_0x154435[_0x2771('0x1')](_0x43c5cf,_0xcbaf81);};}function removeListener(_0x39212d,_0x2ef251){return function(){ChatInternalMessageEvents['removeListener'](_0x39212d,_0x2ef251);};}exports['register']=function(_0xebc9f){for(var _0x1e2eef=0x0,_0x56c633=events[_0x2771('0x2')];_0x1e2eef<_0x56c633;_0x1e2eef++){var _0xaf608=events[_0x1e2eef];var _0x59e10c=createListener(_0x2771('0x3')+_0xaf608,_0xebc9f);ChatInternalMessageEvents['on'](_0xaf608,_0x59e10c);}};