1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x52be=['save','remove','update','removeListener','./squareProject.events'];(function(_0x491faa,_0x4f2907){var _0x414440=function(_0x310864){while(--_0x310864){_0x491faa['push'](_0x491faa['shift']());}};_0x414440(++_0x4f2907);}(_0x52be,0xc7));var _0xe52b=function(_0x43b21d,_0x5d5677){_0x43b21d=_0x43b21d-0x0;var _0x1de400=_0x52be[_0x43b21d];return _0x1de400;};'use strict';var SquareProjectEvents=require(_0xe52b('0x0'));var events=[_0xe52b('0x1'),_0xe52b('0x2'),_0xe52b('0x3')];function createListener(_0x3f2534,_0xef0a78){return function(_0xcc132d){_0xef0a78['emit'](_0x3f2534,_0xcc132d);};}function removeListener(_0x2cc966,_0x69b444){return function(){SquareProjectEvents[_0xe52b('0x4')](_0x2cc966,_0x69b444);};}exports['register']=function(_0x4203eb){for(var _0x3f693f=0x0,_0x3e1a56=events['length'];_0x3f693f<_0x3e1a56;_0x3f693f++){var _0x12c491=events[_0x3f693f];var _0x2397e6=createListener('squareProject:'+_0x12c491,_0x4203eb);SquareProjectEvents['on'](_0x12c491,_0x2397e6);}};