Built motion from commit 994c64e1.|2.6.1
[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 _0x10c0=['removeListener','register','length','mailQueue:','./mailQueue.events','save','remove','update'];(function(_0x166640,_0x47d90a){var _0x59399e=function(_0x3974b7){while(--_0x3974b7){_0x166640['push'](_0x166640['shift']());}};_0x59399e(++_0x47d90a);}(_0x10c0,0x19c));var _0x010c=function(_0x17615e,_0x483a49){_0x17615e=_0x17615e-0x0;var _0xa4c97e=_0x10c0[_0x17615e];return _0xa4c97e;};'use strict';var MailQueueEvents=require(_0x010c('0x0'));var events=[_0x010c('0x1'),_0x010c('0x2'),_0x010c('0x3')];function createListener(_0x43a684,_0x49a4f1){return function(_0x11b5fc){_0x49a4f1['emit'](_0x43a684,_0x11b5fc);};}function removeListener(_0x142527,_0x37ab5b){return function(){MailQueueEvents[_0x010c('0x4')](_0x142527,_0x37ab5b);};}exports[_0x010c('0x5')]=function(_0x5ade88){for(var _0x173e7a=0x0,_0x1fd5b3=events[_0x010c('0x6')];_0x173e7a<_0x1fd5b3;_0x173e7a++){var _0x171645=events[_0x173e7a];var _0x112929=createListener(_0x010c('0x7')+_0x171645,_0x5ade88);MailQueueEvents['on'](_0x171645,_0x112929);}};