Built motion from commit (unavailable).|2.5.22
[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 _0x7ca5=['mailQueue:','save','update','emit','removeListener','register','length'];(function(_0x50741a,_0x241f38){var _0x557f48=function(_0x3a501e){while(--_0x3a501e){_0x50741a['push'](_0x50741a['shift']());}};_0x557f48(++_0x241f38);}(_0x7ca5,0x13c));var _0x57ca=function(_0x4a3442,_0x494cf5){_0x4a3442=_0x4a3442-0x0;var _0xd0d6d5=_0x7ca5[_0x4a3442];return _0xd0d6d5;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x57ca('0x0'),'remove',_0x57ca('0x1')];function createListener(_0x5e3195,_0xe85223){return function(_0x3ab78e){_0xe85223[_0x57ca('0x2')](_0x5e3195,_0x3ab78e);};}function removeListener(_0x108a93,_0x58b07c){return function(){MailQueueEvents[_0x57ca('0x3')](_0x108a93,_0x58b07c);};}exports[_0x57ca('0x4')]=function(_0xda8521){for(var _0x54a93e=0x0,_0x3a5b9d=events[_0x57ca('0x5')];_0x54a93e<_0x3a5b9d;_0x54a93e++){var _0x5c145c=events[_0x54a93e];var _0x326a64=createListener(_0x57ca('0x6')+_0x5c145c,_0xda8521);MailQueueEvents['on'](_0x5c145c,_0x326a64);}};