Built motion from commit da24aabd.|2.6.20
[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 _0x49df=['removeListener','length','save','update','emit'];(function(_0x1a72f3,_0x217011){var _0x57ef47=function(_0x20123d){while(--_0x20123d){_0x1a72f3['push'](_0x1a72f3['shift']());}};_0x57ef47(++_0x217011);}(_0x49df,0x156));var _0xf49d=function(_0x12f58e,_0x1ea042){_0x12f58e=_0x12f58e-0x0;var _0x1f88d7=_0x49df[_0x12f58e];return _0x1f88d7;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0xf49d('0x0'),'remove',_0xf49d('0x1')];function createListener(_0x50238b,_0xe47e93){return function(_0x3f650f){_0xe47e93[_0xf49d('0x2')](_0x50238b,_0x3f650f);};}function removeListener(_0x3a13f1,_0x3ec5f6){return function(){ChatInteractionEvents[_0xf49d('0x3')](_0x3a13f1,_0x3ec5f6);};}exports['register']=function(_0x4e6992){for(var _0x38724d=0x0,_0x44bab9=events[_0xf49d('0x4')];_0x38724d<_0x44bab9;_0x38724d++){var _0x34c100=events[_0x38724d];var _0x19a6e8=createListener('chatInteraction:'+_0x34c100,_0x4e6992);ChatInteractionEvents['on'](_0x34c100,_0x19a6e8);}};