Built motion from commit (unavailable).|2.5.7
[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 _0x75ce=['removeListener','register','mailQueue:','save','remove','update','emit'];(function(_0xe87688,_0x1403be){var _0x41ffa6=function(_0x4b2b20){while(--_0x4b2b20){_0xe87688['push'](_0xe87688['shift']());}};_0x41ffa6(++_0x1403be);}(_0x75ce,0x129));var _0xe75c=function(_0x178e48,_0x3c9509){_0x178e48=_0x178e48-0x0;var _0x440d7e=_0x75ce[_0x178e48];return _0x440d7e;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0xe75c('0x0'),_0xe75c('0x1'),_0xe75c('0x2')];function createListener(_0x97f608,_0x313c28){return function(_0x5e8b93){_0x313c28[_0xe75c('0x3')](_0x97f608,_0x5e8b93);};}function removeListener(_0x1bca4f,_0x57ad54){return function(){MailQueueEvents[_0xe75c('0x4')](_0x1bca4f,_0x57ad54);};}exports[_0xe75c('0x5')]=function(_0x284dbc){for(var _0x239f0e=0x0,_0x1a6499=events['length'];_0x239f0e<_0x1a6499;_0x239f0e++){var _0x4faf72=events[_0x239f0e];var _0x2dfbf2=createListener(_0xe75c('0x6')+_0x4faf72,_0x284dbc);MailQueueEvents['on'](_0x4faf72,_0x2dfbf2);}};