Built motion from commit 9c91e9f5.|2.6.29
[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 _0x93eb=['update','emit','register','length','chatInteraction:','save'];(function(_0x86caac,_0x1a6438){var _0x41dab7=function(_0x3f6890){while(--_0x3f6890){_0x86caac['push'](_0x86caac['shift']());}};_0x41dab7(++_0x1a6438);}(_0x93eb,0x7d));var _0xb93e=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x93eb[_0x59ee6f];return _0x4c0979;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0xb93e('0x0'),'remove',_0xb93e('0x1')];function createListener(_0x14f73a,_0x380c48){return function(_0x38b9de){_0x380c48[_0xb93e('0x2')](_0x14f73a,_0x38b9de);};}function removeListener(_0x4a3717,_0x409df8){return function(){ChatInteractionEvents['removeListener'](_0x4a3717,_0x409df8);};}exports[_0xb93e('0x3')]=function(_0x2bee03){for(var _0x173f6b=0x0,_0xcb759=events[_0xb93e('0x4')];_0x173f6b<_0xcb759;_0x173f6b++){var _0x3599d4=events[_0x173f6b];var _0x3e6e2d=createListener(_0xb93e('0x5')+_0x3599d4,_0x2bee03);ChatInteractionEvents['on'](_0x3599d4,_0x3e6e2d);}};