Built motion from commit 9d0783e6.|2.6.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 _0xc3a8=['chatInteraction:','./chatInteraction.events','save','remove','emit','register','length'];(function(_0x4f77ab,_0x3bc032){var _0x12d696=function(_0x3dd31c){while(--_0x3dd31c){_0x4f77ab['push'](_0x4f77ab['shift']());}};_0x12d696(++_0x3bc032);}(_0xc3a8,0xe8));var _0x8c3a=function(_0x507403,_0x3f954d){_0x507403=_0x507403-0x0;var _0x1327c=_0xc3a8[_0x507403];return _0x1327c;};'use strict';var ChatInteractionEvents=require(_0x8c3a('0x0'));var events=[_0x8c3a('0x1'),_0x8c3a('0x2'),'update'];function createListener(_0x1790e6,_0x5b6a76){return function(_0x3142c7){_0x5b6a76[_0x8c3a('0x3')](_0x1790e6,_0x3142c7);};}function removeListener(_0x3585d1,_0x1d993b){return function(){ChatInteractionEvents['removeListener'](_0x3585d1,_0x1d993b);};}exports[_0x8c3a('0x4')]=function(_0x2477f9){for(var _0x18a92a=0x0,_0x170999=events[_0x8c3a('0x5')];_0x18a92a<_0x170999;_0x18a92a++){var _0x37047e=events[_0x18a92a];var _0x58a9b0=createListener(_0x8c3a('0x6')+_0x37047e,_0x2477f9);ChatInteractionEvents['on'](_0x37047e,_0x58a9b0);}};