Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / mailQueue / mailQueue.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 _0x9e86=['update','removeListener','register','length','./mailQueue.events','save','remove'];(function(_0x321206,_0x22269d){var _0xb3746b=function(_0x56b796){while(--_0x56b796){_0x321206['push'](_0x321206['shift']());}};_0xb3746b(++_0x22269d);}(_0x9e86,0x162));var _0x69e8=function(_0x1f5154,_0x464dee){_0x1f5154=_0x1f5154-0x0;var _0x19cded=_0x9e86[_0x1f5154];return _0x19cded;};'use strict';var MailQueueEvents=require(_0x69e8('0x0'));var events=[_0x69e8('0x1'),_0x69e8('0x2'),_0x69e8('0x3')];function createListener(_0x15616f,_0x4eff7f){return function(_0x38f24b){_0x4eff7f['emit'](_0x15616f,_0x38f24b);};}function removeListener(_0x260123,_0x50814e){return function(){MailQueueEvents[_0x69e8('0x4')](_0x260123,_0x50814e);};}exports[_0x69e8('0x5')]=function(_0x5cf44f){for(var _0x1eb5ea=0x0,_0x494032=events[_0x69e8('0x6')];_0x1eb5ea<_0x494032;_0x1eb5ea++){var _0x2f69bb=events[_0x1eb5ea];var _0x34023b=createListener('mailQueue:'+_0x2f69bb,_0x5cf44f);MailQueueEvents['on'](_0x2f69bb,_0x34023b);}};