Built motion from commit (unavailable).|2.5.22
[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 _0x1a31=['./chatInteraction.events','emit','removeListener','length','chatInteraction:'];(function(_0x11ce46,_0x177a85){var _0x368a1e=function(_0x425454){while(--_0x425454){_0x11ce46['push'](_0x11ce46['shift']());}};_0x368a1e(++_0x177a85);}(_0x1a31,0x6e));var _0x11a3=function(_0x36ed48,_0x1ee0d4){_0x36ed48=_0x36ed48-0x0;var _0x51c63a=_0x1a31[_0x36ed48];return _0x51c63a;};'use strict';var ChatInteractionEvents=require(_0x11a3('0x0'));var events=['save','remove','update'];function createListener(_0x45021f,_0x2f364a){return function(_0x525e1e){_0x2f364a[_0x11a3('0x1')](_0x45021f,_0x525e1e);};}function removeListener(_0x4d6068,_0x6b233e){return function(){ChatInteractionEvents[_0x11a3('0x2')](_0x4d6068,_0x6b233e);};}exports['register']=function(_0xf9a56e){for(var _0x1ba8c6=0x0,_0x192c65=events[_0x11a3('0x3')];_0x1ba8c6<_0x192c65;_0x1ba8c6++){var _0x1e37a3=events[_0x1ba8c6];var _0x438fc7=createListener(_0x11a3('0x4')+_0x1e37a3,_0xf9a56e);ChatInteractionEvents['on'](_0x1e37a3,_0x438fc7);}};