Built motion from commit (unavailable).|2.5.11
[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 _0x4ff6=['update','emit','removeListener','register','length','mailQueue:','./mailQueue.events','remove'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x4ff6,0x86));var _0x64ff=function(_0xdad9d9,_0x75e191){_0xdad9d9=_0xdad9d9-0x0;var _0x1d3082=_0x4ff6[_0xdad9d9];return _0x1d3082;};'use strict';var MailQueueEvents=require(_0x64ff('0x0'));var events=['save',_0x64ff('0x1'),_0x64ff('0x2')];function createListener(_0x338aca,_0x2d2b41){return function(_0x552b50){_0x2d2b41[_0x64ff('0x3')](_0x338aca,_0x552b50);};}function removeListener(_0x34f80e,_0x53bf29){return function(){MailQueueEvents[_0x64ff('0x4')](_0x34f80e,_0x53bf29);};}exports[_0x64ff('0x5')]=function(_0x35ce9c){for(var _0x5ea165=0x0,_0x30a912=events[_0x64ff('0x6')];_0x5ea165<_0x30a912;_0x5ea165++){var _0x58447c=events[_0x5ea165];var _0x554685=createListener(_0x64ff('0x7')+_0x58447c,_0x35ce9c);MailQueueEvents['on'](_0x58447c,_0x554685);}};