Built motion from commit (unavailable).|2.5.31
[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 _0xa934=['length','chatInteraction:','save','remove','update','removeListener','register'];(function(_0x4a13ff,_0x33b578){var _0x56fd1d=function(_0xe4c56b){while(--_0xe4c56b){_0x4a13ff['push'](_0x4a13ff['shift']());}};_0x56fd1d(++_0x33b578);}(_0xa934,0x87));var _0x4a93=function(_0x1c2795,_0x58242b){_0x1c2795=_0x1c2795-0x0;var _0x3448be=_0xa934[_0x1c2795];return _0x3448be;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x4a93('0x0'),_0x4a93('0x1'),_0x4a93('0x2')];function createListener(_0x1da47e,_0x2de19a){return function(_0x3def85){_0x2de19a['emit'](_0x1da47e,_0x3def85);};}function removeListener(_0x16d82d,_0x5657ff){return function(){ChatInteractionEvents[_0x4a93('0x3')](_0x16d82d,_0x5657ff);};}exports[_0x4a93('0x4')]=function(_0x9b3cee){for(var _0x1883f6=0x0,_0x585138=events[_0x4a93('0x5')];_0x1883f6<_0x585138;_0x1883f6++){var _0x7e86fc=events[_0x1883f6];var _0x4dc54f=createListener(_0x4a93('0x6')+_0x7e86fc,_0x9b3cee);ChatInteractionEvents['on'](_0x7e86fc,_0x4dc54f);}};