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 _0xf931=['register','./squareProject.events','save','remove','emit','removeListener'];(function(_0x837fc7,_0x31ab3a){var _0x59f37d=function(_0x3d30f0){while(--_0x3d30f0){_0x837fc7['push'](_0x837fc7['shift']());}};_0x59f37d(++_0x31ab3a);}(_0xf931,0x1ab));var _0x1f93=function(_0x1298f1,_0x109676){_0x1298f1=_0x1298f1-0x0;var _0x16b255=_0xf931[_0x1298f1];return _0x16b255;};'use strict';var SquareProjectEvents=require(_0x1f93('0x0'));var events=[_0x1f93('0x1'),_0x1f93('0x2'),'update'];function createListener(_0x143e0d,_0x384506){return function(_0x34dc50){_0x384506[_0x1f93('0x3')](_0x143e0d,_0x34dc50);};}function removeListener(_0x178266,_0x24718b){return function(){SquareProjectEvents[_0x1f93('0x4')](_0x178266,_0x24718b);};}exports[_0x1f93('0x5')]=function(_0x476680){for(var _0xa42f7c=0x0,_0x16dbbf=events['length'];_0xa42f7c<_0x16dbbf;_0xa42f7c++){var _0x134328=events[_0xa42f7c];var _0x335f39=createListener('squareProject:'+_0x134328,_0x476680);SquareProjectEvents['on'](_0x134328,_0x335f39);}};