Built motion from commit ede67897.|2.6.29
[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 _0xc664=['emit','removeListener','register','length','./mailAccount.events','save','update'];(function(_0x45941e,_0x370c2f){var _0x55dd9f=function(_0x5b5e7b){while(--_0x5b5e7b){_0x45941e['push'](_0x45941e['shift']());}};_0x55dd9f(++_0x370c2f);}(_0xc664,0x90));var _0x4c66=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc664[_0x3dd15e];return _0x231fd0;};'use strict';var MailAccountEvents=require(_0x4c66('0x0'));var events=[_0x4c66('0x1'),'remove',_0x4c66('0x2')];function createListener(_0xe20ccb,_0x2afeb8){return function(_0x316288){_0x2afeb8[_0x4c66('0x3')](_0xe20ccb,_0x316288);};}function removeListener(_0x54aa28,_0x138261){return function(){MailAccountEvents[_0x4c66('0x4')](_0x54aa28,_0x138261);};}exports[_0x4c66('0x5')]=function(_0x28a065){for(var _0x4ecac0=0x0,_0x14ceba=events[_0x4c66('0x6')];_0x4ecac0<_0x14ceba;_0x4ecac0++){var _0x406aec=events[_0x4ecac0];var _0x47fb8e=createListener('mailAccount:'+_0x406aec,_0x28a065);MailAccountEvents['on'](_0x406aec,_0x47fb8e);}};