Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / mailInteraction / mailInteraction.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 _0xfed4=['register','length','mailInteraction:','./mailInteraction.events','save','remove','update','removeListener'];(function(_0x187ee1,_0x3fd1e6){var _0x388160=function(_0x542dd2){while(--_0x542dd2){_0x187ee1['push'](_0x187ee1['shift']());}};_0x388160(++_0x3fd1e6);}(_0xfed4,0x1bb));var _0x4fed=function(_0x4c3bf6,_0x32aef4){_0x4c3bf6=_0x4c3bf6-0x0;var _0x448888=_0xfed4[_0x4c3bf6];return _0x448888;};'use strict';var MailInteractionEvents=require(_0x4fed('0x0'));var events=[_0x4fed('0x1'),_0x4fed('0x2'),_0x4fed('0x3')];function createListener(_0x3b2ddd,_0x214c46){return function(_0x7b759){_0x214c46['emit'](_0x3b2ddd,_0x7b759);};}function removeListener(_0x5abf1e,_0x370617){return function(){MailInteractionEvents[_0x4fed('0x4')](_0x5abf1e,_0x370617);};}exports[_0x4fed('0x5')]=function(_0x566707){for(var _0x4c4e1c=0x0,_0x45f685=events[_0x4fed('0x6')];_0x4c4e1c<_0x45f685;_0x4c4e1c++){var _0x424a62=events[_0x4c4e1c];var _0x372748=createListener(_0x4fed('0x7')+_0x424a62,_0x566707);MailInteractionEvents['on'](_0x424a62,_0x372748);}};