Built motion from commit f3da74b7.|2.5.36
[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 _0x2c9d=['./chatInternalMessage.events','remove','emit','removeListener','length','chatInternalMessage:'];(function(_0x467b25,_0x14a29a){var _0x2ad500=function(_0x301649){while(--_0x301649){_0x467b25['push'](_0x467b25['shift']());}};_0x2ad500(++_0x14a29a);}(_0x2c9d,0x90));var _0xd2c9=function(_0x2df507,_0x553862){_0x2df507=_0x2df507-0x0;var _0x1f7167=_0x2c9d[_0x2df507];return _0x1f7167;};'use strict';var ChatInternalMessageEvents=require(_0xd2c9('0x0'));var events=['save',_0xd2c9('0x1'),'update'];function createListener(_0x2b1376,_0x4a80c5){return function(_0x265d23){_0x4a80c5[_0xd2c9('0x2')](_0x2b1376,_0x265d23);};}function removeListener(_0x1a1cdb,_0x4ca468){return function(){ChatInternalMessageEvents[_0xd2c9('0x3')](_0x1a1cdb,_0x4ca468);};}exports['register']=function(_0x4ac6c2){for(var _0x81ff9b=0x0,_0x244c12=events[_0xd2c9('0x4')];_0x81ff9b<_0x244c12;_0x81ff9b++){var _0x44188c=events[_0x81ff9b];var _0x21fadd=createListener(_0xd2c9('0x5')+_0x44188c,_0x4ac6c2);ChatInternalMessageEvents['on'](_0x44188c,_0x21fadd);}};