Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / api / mailAccount / mailAccount.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 _0x2dc3=['mailAccount:','save','remove','update','emit','register','length'];(function(_0x10da23,_0x5869d4){var _0x5f0fe7=function(_0x49e1b3){while(--_0x49e1b3){_0x10da23['push'](_0x10da23['shift']());}};_0x5f0fe7(++_0x5869d4);}(_0x2dc3,0x127));var _0x32dc=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0x2dc3[_0x6131cd];return _0x47e916;};'use strict';var MailAccountEvents=require('./mailAccount.events');var events=[_0x32dc('0x0'),_0x32dc('0x1'),_0x32dc('0x2')];function createListener(_0x25b524,_0x2f8a4c){return function(_0x597050){_0x2f8a4c[_0x32dc('0x3')](_0x25b524,_0x597050);};}function removeListener(_0x15c3f6,_0x53b74c){return function(){MailAccountEvents['removeListener'](_0x15c3f6,_0x53b74c);};}exports[_0x32dc('0x4')]=function(_0x58b6ba){for(var _0x1f59d3=0x0,_0x52336b=events[_0x32dc('0x5')];_0x1f59d3<_0x52336b;_0x1f59d3++){var _0x491a56=events[_0x1f59d3];var _0x49c416=createListener(_0x32dc('0x6')+_0x491a56,_0x58b6ba);MailAccountEvents['on'](_0x491a56,_0x49c416);}};