Built motion from commit (unavailable).|2.5.7
[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 _0x415c=['removeListener','register','length','mailInteraction:','./mailInteraction.events','save','update','emit'];(function(_0x2e6c8d,_0x17c7ef){var _0x259c0f=function(_0x97387a){while(--_0x97387a){_0x2e6c8d['push'](_0x2e6c8d['shift']());}};_0x259c0f(++_0x17c7ef);}(_0x415c,0x94));var _0xc415=function(_0x28629d,_0x1cec2c){_0x28629d=_0x28629d-0x0;var _0x444c53=_0x415c[_0x28629d];return _0x444c53;};'use strict';var MailInteractionEvents=require(_0xc415('0x0'));var events=[_0xc415('0x1'),'remove',_0xc415('0x2')];function createListener(_0x5d50b0,_0x11c1e0){return function(_0x39bb34){_0x11c1e0[_0xc415('0x3')](_0x5d50b0,_0x39bb34);};}function removeListener(_0x355be1,_0x3333e5){return function(){MailInteractionEvents[_0xc415('0x4')](_0x355be1,_0x3333e5);};}exports[_0xc415('0x5')]=function(_0x5e0492){for(var _0x10fa1d=0x0,_0x32ec30=events[_0xc415('0x6')];_0x10fa1d<_0x32ec30;_0x10fa1d++){var _0x1501e1=events[_0x10fa1d];var _0x4a26cc=createListener(_0xc415('0x7')+_0x1501e1,_0x5e0492);MailInteractionEvents['on'](_0x1501e1,_0x4a26cc);}};