Built motion from commit 0900f080.|2.5.45
[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 _0x85e9=['update','emit','register','length','chatInteraction:','./chatInteraction.events','save','remove'];(function(_0x2a60d5,_0x482adf){var _0x1aa7ec=function(_0x3d3e4f){while(--_0x3d3e4f){_0x2a60d5['push'](_0x2a60d5['shift']());}};_0x1aa7ec(++_0x482adf);}(_0x85e9,0x185));var _0x985e=function(_0x29239b,_0x114fdf){_0x29239b=_0x29239b-0x0;var _0x4f1c69=_0x85e9[_0x29239b];return _0x4f1c69;};'use strict';var ChatInteractionEvents=require(_0x985e('0x0'));var events=[_0x985e('0x1'),_0x985e('0x2'),_0x985e('0x3')];function createListener(_0x41b499,_0x41726a){return function(_0x3b00a9){_0x41726a[_0x985e('0x4')](_0x41b499,_0x3b00a9);};}function removeListener(_0x152b54,_0x44e85c){return function(){ChatInteractionEvents['removeListener'](_0x152b54,_0x44e85c);};}exports[_0x985e('0x5')]=function(_0x43dc5e){for(var _0x3f8533=0x0,_0x59f43c=events[_0x985e('0x6')];_0x3f8533<_0x59f43c;_0x3f8533++){var _0x404ab4=events[_0x3f8533];var _0x1848c7=createListener(_0x985e('0x7')+_0x404ab4,_0x43dc5e);ChatInteractionEvents['on'](_0x404ab4,_0x1848c7);}};