Built motion from commit bab6f49e.|2.6.17
[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 _0xcc8c=['length','./chatInteraction.events','save','remove','update','removeListener','register'];(function(_0x9c8135,_0x4bdf00){var _0xd4fdc4=function(_0x51b55f){while(--_0x51b55f){_0x9c8135['push'](_0x9c8135['shift']());}};_0xd4fdc4(++_0x4bdf00);}(_0xcc8c,0x151));var _0xccc8=function(_0x5a7fbc,_0xa081de){_0x5a7fbc=_0x5a7fbc-0x0;var _0xcba0fc=_0xcc8c[_0x5a7fbc];return _0xcba0fc;};'use strict';var ChatInteractionEvents=require(_0xccc8('0x0'));var events=[_0xccc8('0x1'),_0xccc8('0x2'),_0xccc8('0x3')];function createListener(_0x482f97,_0x1a2713){return function(_0x1df6d0){_0x1a2713['emit'](_0x482f97,_0x1df6d0);};}function removeListener(_0x5abed0,_0x395b26){return function(){ChatInteractionEvents[_0xccc8('0x4')](_0x5abed0,_0x395b26);};}exports[_0xccc8('0x5')]=function(_0x3feac8){for(var _0x54efb2=0x0,_0x508185=events[_0xccc8('0x6')];_0x54efb2<_0x508185;_0x54efb2++){var _0x5d4762=events[_0x54efb2];var _0x321efe=createListener('chatInteraction:'+_0x5d4762,_0x3feac8);ChatInteractionEvents['on'](_0x5d4762,_0x321efe);}};