bc8ae4f524aea1cc672123b13f5f03dd1dce36af
[motion2.git] / server / api / squareProject / squareProject.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 _0x0dc3=['emit','register','squareProject:','save','update'];(function(_0x31b5b2,_0x5ab927){var _0x364f13=function(_0x163bd0){while(--_0x163bd0){_0x31b5b2['push'](_0x31b5b2['shift']());}};_0x364f13(++_0x5ab927);}(_0x0dc3,0x107));var _0x30dc=function(_0x142ec2,_0x5bb03d){_0x142ec2=_0x142ec2-0x0;var _0x45ef4e=_0x0dc3[_0x142ec2];return _0x45ef4e;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0x30dc('0x0'),'remove',_0x30dc('0x1')];function createListener(_0x86cdeb,_0x2ab460){return function(_0x52e91b){_0x2ab460[_0x30dc('0x2')](_0x86cdeb,_0x52e91b);};}function removeListener(_0x1ff58f,_0x2263c2){return function(){SquareProjectEvents['removeListener'](_0x1ff58f,_0x2263c2);};}exports[_0x30dc('0x3')]=function(_0x201ced){for(var _0x1726ba=0x0,_0x41fe02=events['length'];_0x1726ba<_0x41fe02;_0x1726ba++){var _0x58d562=events[_0x1726ba];var _0x5a1802=createListener(_0x30dc('0x4')+_0x58d562,_0x201ced);SquareProjectEvents['on'](_0x58d562,_0x5a1802);}};