Built motion from commit (unavailable).|2.5.26
[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 _0x652f=['remove','emit','register','chatInteraction:','./chatInteraction.events','save'];(function(_0x110c3d,_0x12ee06){var _0x226d67=function(_0x1fb6e1){while(--_0x1fb6e1){_0x110c3d['push'](_0x110c3d['shift']());}};_0x226d67(++_0x12ee06);}(_0x652f,0xfa));var _0xf652=function(_0x11b677,_0x2c3da5){_0x11b677=_0x11b677-0x0;var _0x5046f1=_0x652f[_0x11b677];return _0x5046f1;};'use strict';var ChatInteractionEvents=require(_0xf652('0x0'));var events=[_0xf652('0x1'),_0xf652('0x2'),'update'];function createListener(_0x58c405,_0x47a417){return function(_0x590a89){_0x47a417[_0xf652('0x3')](_0x58c405,_0x590a89);};}function removeListener(_0x40087b,_0x567db7){return function(){ChatInteractionEvents['removeListener'](_0x40087b,_0x567db7);};}exports[_0xf652('0x4')]=function(_0x11f70e){for(var _0x2b2926=0x0,_0x591f5b=events['length'];_0x2b2926<_0x591f5b;_0x2b2926++){var _0x1efd77=events[_0x2b2926];var _0x54bcbe=createListener(_0xf652('0x5')+_0x1efd77,_0x11f70e);ChatInteractionEvents['on'](_0x1efd77,_0x54bcbe);}};