Built motion from commit 3e059bc2.|2.5.32
[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 _0xdb63=['remove','emit','removeListener','register','save'];(function(_0x374b56,_0x326467){var _0x5d2a5f=function(_0x312567){while(--_0x312567){_0x374b56['push'](_0x374b56['shift']());}};_0x5d2a5f(++_0x326467);}(_0xdb63,0x18a));var _0x3db6=function(_0x545920,_0x5cdfbc){_0x545920=_0x545920-0x0;var _0x40536d=_0xdb63[_0x545920];return _0x40536d;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x3db6('0x0'),_0x3db6('0x1'),'update'];function createListener(_0x366b09,_0x7e0f94){return function(_0x448a6a){_0x7e0f94[_0x3db6('0x2')](_0x366b09,_0x448a6a);};}function removeListener(_0x5211ed,_0x266108){return function(){ChatInteractionEvents[_0x3db6('0x3')](_0x5211ed,_0x266108);};}exports[_0x3db6('0x4')]=function(_0x167829){for(var _0x524ba1=0x0,_0x41f5d2=events['length'];_0x524ba1<_0x41f5d2;_0x524ba1++){var _0x488f3f=events[_0x524ba1];var _0x1540cb=createListener('chatInteraction:'+_0x488f3f,_0x167829);ChatInteractionEvents['on'](_0x488f3f,_0x1540cb);}};