Built motion from commit da617fac.|2.6.6
[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 _0xbb50=['./chatInteraction.events','save','remove','update','emit','removeListener','length','chatInteraction:'];(function(_0x183196,_0x29bbb7){var _0x1d4d69=function(_0x4c2ba6){while(--_0x4c2ba6){_0x183196['push'](_0x183196['shift']());}};_0x1d4d69(++_0x29bbb7);}(_0xbb50,0x1d8));var _0x0bb5=function(_0x2d6138,_0x219734){_0x2d6138=_0x2d6138-0x0;var _0x55eb00=_0xbb50[_0x2d6138];return _0x55eb00;};'use strict';var ChatInteractionEvents=require(_0x0bb5('0x0'));var events=[_0x0bb5('0x1'),_0x0bb5('0x2'),_0x0bb5('0x3')];function createListener(_0x2bdf96,_0x51b347){return function(_0x53cd77){_0x51b347[_0x0bb5('0x4')](_0x2bdf96,_0x53cd77);};}function removeListener(_0x23ebdc,_0x5418c4){return function(){ChatInteractionEvents[_0x0bb5('0x5')](_0x23ebdc,_0x5418c4);};}exports['register']=function(_0x4e5835){for(var _0x26ddcc=0x0,_0x392049=events[_0x0bb5('0x6')];_0x26ddcc<_0x392049;_0x26ddcc++){var _0x2dfac9=events[_0x26ddcc];var _0xbf56=createListener(_0x0bb5('0x7')+_0x2dfac9,_0x4e5835);ChatInteractionEvents['on'](_0x2dfac9,_0xbf56);}};