Built motion from commit 9d0783e6.|2.6.13
[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 _0x361a=['register','length','./mailQueue.events','save','remove','update','emit','removeListener'];(function(_0x13b02f,_0x462a53){var _0x12e9a6=function(_0x187d57){while(--_0x187d57){_0x13b02f['push'](_0x13b02f['shift']());}};_0x12e9a6(++_0x462a53);}(_0x361a,0x102));var _0xa361=function(_0x45158b,_0x45bc1e){_0x45158b=_0x45158b-0x0;var _0x1f4075=_0x361a[_0x45158b];return _0x1f4075;};'use strict';var MailQueueEvents=require(_0xa361('0x0'));var events=[_0xa361('0x1'),_0xa361('0x2'),_0xa361('0x3')];function createListener(_0x531e30,_0x2ea24f){return function(_0x2d53cf){_0x2ea24f[_0xa361('0x4')](_0x531e30,_0x2d53cf);};}function removeListener(_0x4ed762,_0x1a8ad1){return function(){MailQueueEvents[_0xa361('0x5')](_0x4ed762,_0x1a8ad1);};}exports[_0xa361('0x6')]=function(_0x2df977){for(var _0x2145de=0x0,_0x5ec147=events[_0xa361('0x7')];_0x2145de<_0x5ec147;_0x2145de++){var _0x10541a=events[_0x2145de];var _0x383d1f=createListener('mailQueue:'+_0x10541a,_0x2df977);MailQueueEvents['on'](_0x10541a,_0x383d1f);}};