Built motion from commit dbf3a7e2.|2.6.30
[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 _0x4ba4=['update','emit','removeListener','register','length','./chatInternalMessage.events','save'];(function(_0x1f997e,_0x1d5056){var _0x3ef264=function(_0x5efe42){while(--_0x5efe42){_0x1f997e['push'](_0x1f997e['shift']());}};_0x3ef264(++_0x1d5056);}(_0x4ba4,0x67));var _0x44ba=function(_0x1f5e33,_0x10f720){_0x1f5e33=_0x1f5e33-0x0;var _0x28aadf=_0x4ba4[_0x1f5e33];return _0x28aadf;};'use strict';var ChatInternalMessageEvents=require(_0x44ba('0x0'));var events=[_0x44ba('0x1'),'remove',_0x44ba('0x2')];function createListener(_0x3d895f,_0x1a5cf4){return function(_0x456762){_0x1a5cf4[_0x44ba('0x3')](_0x3d895f,_0x456762);};}function removeListener(_0x553fe8,_0x43f191){return function(){ChatInternalMessageEvents[_0x44ba('0x4')](_0x553fe8,_0x43f191);};}exports[_0x44ba('0x5')]=function(_0x184c19){for(var _0x4f1854=0x0,_0x26e0bb=events[_0x44ba('0x6')];_0x4f1854<_0x26e0bb;_0x4f1854++){var _0x541f88=events[_0x4f1854];var _0x2790b6=createListener('chatInternalMessage:'+_0x541f88,_0x184c19);ChatInternalMessageEvents['on'](_0x541f88,_0x2790b6);}};