Built motion from commit 911eb874.|2.6.31
[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 _0x19f6=['./mailAccount.events','save','remove','update','register','length'];(function(_0x3bfb97,_0x566117){var _0x54da9b=function(_0x39f33e){while(--_0x39f33e){_0x3bfb97['push'](_0x3bfb97['shift']());}};_0x54da9b(++_0x566117);}(_0x19f6,0x1ce));var _0x619f=function(_0x34a10c,_0x7ce96a){_0x34a10c=_0x34a10c-0x0;var _0x3015ab=_0x19f6[_0x34a10c];return _0x3015ab;};'use strict';var MailAccountEvents=require(_0x619f('0x0'));var events=[_0x619f('0x1'),_0x619f('0x2'),_0x619f('0x3')];function createListener(_0x42084e,_0x103373){return function(_0x100761){_0x103373['emit'](_0x42084e,_0x100761);};}function removeListener(_0x128f4f,_0x2eb86d){return function(){MailAccountEvents['removeListener'](_0x128f4f,_0x2eb86d);};}exports[_0x619f('0x4')]=function(_0x59b1a6){for(var _0x38b131=0x0,_0xcbfda5=events[_0x619f('0x5')];_0x38b131<_0xcbfda5;_0x38b131++){var _0x3b344a=events[_0x38b131];var _0x23f114=createListener('mailAccount:'+_0x3b344a,_0x59b1a6);MailAccountEvents['on'](_0x3b344a,_0x23f114);}};