Built motion from commit (unavailable).|2.4.17
[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 _0xf50b=['removeListener','register','length','mailAccount:','./mailAccount.events','save','update'];(function(_0x34bf97,_0xc60f9d){var _0x292719=function(_0x31354e){while(--_0x31354e){_0x34bf97['push'](_0x34bf97['shift']());}};_0x292719(++_0xc60f9d);}(_0xf50b,0xc8));var _0xbf50=function(_0x1c3d4c,_0x544f74){_0x1c3d4c=_0x1c3d4c-0x0;var _0x4c1c26=_0xf50b[_0x1c3d4c];return _0x4c1c26;};'use strict';var MailAccountEvents=require(_0xbf50('0x0'));var events=[_0xbf50('0x1'),'remove',_0xbf50('0x2')];function createListener(_0x18c2f1,_0x3336bb){return function(_0x443bf8){_0x3336bb['emit'](_0x18c2f1,_0x443bf8);};}function removeListener(_0x32217d,_0x4f5ba8){return function(){MailAccountEvents[_0xbf50('0x3')](_0x32217d,_0x4f5ba8);};}exports[_0xbf50('0x4')]=function(_0x1ecb62){for(var _0x117cc8=0x0,_0x3dd305=events[_0xbf50('0x5')];_0x117cc8<_0x3dd305;_0x117cc8++){var _0xce290=events[_0x117cc8];var _0x497c4c=createListener(_0xbf50('0x6')+_0xce290,_0x1ecb62);MailAccountEvents['on'](_0xce290,_0x497c4c);}};