Built motion from commit c738b9ac.|2.6.25
[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 _0xa3f2=['remove','update','emit','removeListener','register','length','save'];(function(_0x4d07cc,_0x587613){var _0x42de3b=function(_0x201f78){while(--_0x201f78){_0x4d07cc['push'](_0x4d07cc['shift']());}};_0x42de3b(++_0x587613);}(_0xa3f2,0x6f));var _0x2a3f=function(_0x1bae45,_0x313bc1){_0x1bae45=_0x1bae45-0x0;var _0x1d865a=_0xa3f2[_0x1bae45];return _0x1d865a;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x2a3f('0x0'),_0x2a3f('0x1'),_0x2a3f('0x2')];function createListener(_0x347500,_0x32d6c8){return function(_0x233fb5){_0x32d6c8[_0x2a3f('0x3')](_0x347500,_0x233fb5);};}function removeListener(_0x52865e,_0x42f851){return function(){ChatInteractionEvents[_0x2a3f('0x4')](_0x52865e,_0x42f851);};}exports[_0x2a3f('0x5')]=function(_0x5227a3){for(var _0x4d80d0=0x0,_0xd7bc86=events[_0x2a3f('0x6')];_0x4d80d0<_0xd7bc86;_0x4d80d0++){var _0x1d6b02=events[_0x4d80d0];var _0x4e10c9=createListener('chatInteraction:'+_0x1d6b02,_0x5227a3);ChatInteractionEvents['on'](_0x1d6b02,_0x4e10c9);}};