Built motion from commit (unavailable).|2.4.17
[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 _0x396d=['length','save','remove','update'];(function(_0x3d2e4b,_0x1f6653){var _0x509e78=function(_0x307037){while(--_0x307037){_0x3d2e4b['push'](_0x3d2e4b['shift']());}};_0x509e78(++_0x1f6653);}(_0x396d,0x1d5));var _0xd396=function(_0x2ffbb4,_0x4c2356){_0x2ffbb4=_0x2ffbb4-0x0;var _0x5c847d=_0x396d[_0x2ffbb4];return _0x5c847d;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0xd396('0x0'),_0xd396('0x1'),_0xd396('0x2')];function createListener(_0x5aabdf,_0x6e4709){return function(_0x28a6a3){_0x6e4709['emit'](_0x5aabdf,_0x28a6a3);};}function removeListener(_0x3b59d1,_0x3260d5){return function(){ChatInteractionEvents['removeListener'](_0x3b59d1,_0x3260d5);};}exports['register']=function(_0x3eb609){for(var _0x321e8a=0x0,_0x170493=events[_0xd396('0x3')];_0x321e8a<_0x170493;_0x321e8a++){var _0x33c7c4=events[_0x321e8a];var _0x484726=createListener('chatInteraction:'+_0x33c7c4,_0x3eb609);ChatInteractionEvents['on'](_0x33c7c4,_0x484726);}};