Built motion from commit (unavailable).|2.5.3
[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 _0xc06c=['removeListener','register','length','chatInteraction:','./chatInteraction.events','save','update','emit'];(function(_0x26f66b,_0x3915fa){var _0x593c17=function(_0x1c4d1e){while(--_0x1c4d1e){_0x26f66b['push'](_0x26f66b['shift']());}};_0x593c17(++_0x3915fa);}(_0xc06c,0x1cc));var _0xcc06=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0xc06c[_0x6c993a];return _0x27f547;};'use strict';var ChatInteractionEvents=require(_0xcc06('0x0'));var events=[_0xcc06('0x1'),'remove',_0xcc06('0x2')];function createListener(_0x58410c,_0x55c042){return function(_0xa93c4){_0x55c042[_0xcc06('0x3')](_0x58410c,_0xa93c4);};}function removeListener(_0x573f1e,_0x49f288){return function(){ChatInteractionEvents[_0xcc06('0x4')](_0x573f1e,_0x49f288);};}exports[_0xcc06('0x5')]=function(_0x240fc6){for(var _0x4363d1=0x0,_0x41b06b=events[_0xcc06('0x6')];_0x4363d1<_0x41b06b;_0x4363d1++){var _0x4a8847=events[_0x4363d1];var _0x255c2e=createListener(_0xcc06('0x7')+_0x4a8847,_0x240fc6);ChatInteractionEvents['on'](_0x4a8847,_0x255c2e);}};