Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / chatInteraction / chatInteraction.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 _0xc94a=['length','./chatInteraction.events','save','remove','emit','register'];(function(_0x30ae5e,_0x391fc4){var _0x1f2e93=function(_0x60307d){while(--_0x60307d){_0x30ae5e['push'](_0x30ae5e['shift']());}};_0x1f2e93(++_0x391fc4);}(_0xc94a,0xbb));var _0xac94=function(_0x2b3362,_0x403bd4){_0x2b3362=_0x2b3362-0x0;var _0x414031=_0xc94a[_0x2b3362];return _0x414031;};'use strict';var ChatInteractionEvents=require(_0xac94('0x0'));var events=[_0xac94('0x1'),_0xac94('0x2'),'update'];function createListener(_0x3071e3,_0x25ca1e){return function(_0xfaf695){_0x25ca1e[_0xac94('0x3')](_0x3071e3,_0xfaf695);};}function removeListener(_0x5489c0,_0x488f77){return function(){ChatInteractionEvents['removeListener'](_0x5489c0,_0x488f77);};}exports[_0xac94('0x4')]=function(_0x51dc96){for(var _0x566f20=0x0,_0x16cc42=events[_0xac94('0x5')];_0x566f20<_0x16cc42;_0x566f20++){var _0x476bde=events[_0x566f20];var _0x4103c0=createListener('chatInteraction:'+_0x476bde,_0x51dc96);ChatInteractionEvents['on'](_0x476bde,_0x4103c0);}};