Built motion from commit 42801a18.|2.6.28
[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 _0xb99d=['emit','removeListener','register','./chatInteraction.events','save','update'];(function(_0x47e5e9,_0x19fff1){var _0x20bf47=function(_0x56e3e2){while(--_0x56e3e2){_0x47e5e9['push'](_0x47e5e9['shift']());}};_0x20bf47(++_0x19fff1);}(_0xb99d,0x87));var _0xdb99=function(_0x3faeac,_0x872ac2){_0x3faeac=_0x3faeac-0x0;var _0x323caf=_0xb99d[_0x3faeac];return _0x323caf;};'use strict';var ChatInteractionEvents=require(_0xdb99('0x0'));var events=[_0xdb99('0x1'),'remove',_0xdb99('0x2')];function createListener(_0x2a870a,_0x32a1e8){return function(_0x13d8be){_0x32a1e8[_0xdb99('0x3')](_0x2a870a,_0x13d8be);};}function removeListener(_0x3951ad,_0x11fef1){return function(){ChatInteractionEvents[_0xdb99('0x4')](_0x3951ad,_0x11fef1);};}exports[_0xdb99('0x5')]=function(_0x484d59){for(var _0x138cf6=0x0,_0x5006d4=events['length'];_0x138cf6<_0x5006d4;_0x138cf6++){var _0xe8aca=events[_0x138cf6];var _0x85560c=createListener('chatInteraction:'+_0xe8aca,_0x484d59);ChatInteractionEvents['on'](_0xe8aca,_0x85560c);}};