Built motion from commit eddce310.|2.6.12
[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 _0x38a5=['emit','removeListener','./mailQueue.events','save'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x38a5,0x1da));var _0x538a=function(_0x2eb87c,_0xc575b2){_0x2eb87c=_0x2eb87c-0x0;var _0x1b80f7=_0x38a5[_0x2eb87c];return _0x1b80f7;};'use strict';var MailQueueEvents=require(_0x538a('0x0'));var events=[_0x538a('0x1'),'remove','update'];function createListener(_0x23914c,_0xaf825a){return function(_0x355d1b){_0xaf825a[_0x538a('0x2')](_0x23914c,_0x355d1b);};}function removeListener(_0x3ea88a,_0x479ff5){return function(){MailQueueEvents[_0x538a('0x3')](_0x3ea88a,_0x479ff5);};}exports['register']=function(_0x2b0d72){for(var _0x463796=0x0,_0x5e3418=events['length'];_0x463796<_0x5e3418;_0x463796++){var _0xbc5b3a=events[_0x463796];var _0x1c4db0=createListener('mailQueue:'+_0xbc5b3a,_0x2b0d72);MailQueueEvents['on'](_0xbc5b3a,_0x1c4db0);}};