Built motion from commit (unavailable).|2.0.77
[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 _0x1094=['squareProject:','./squareProject.events','save','update','emit','register','length'];(function(_0x9fd887,_0x47f76c){var _0x1a54ab=function(_0xb65c08){while(--_0xb65c08){_0x9fd887['push'](_0x9fd887['shift']());}};_0x1a54ab(++_0x47f76c);}(_0x1094,0x143));var _0x4109=function(_0x206338,_0x2d800b){_0x206338=_0x206338-0x0;var _0x2b87f2=_0x1094[_0x206338];return _0x2b87f2;};'use strict';var SquareProjectEvents=require(_0x4109('0x0'));var events=[_0x4109('0x1'),'remove',_0x4109('0x2')];function createListener(_0x52b156,_0x42557f){return function(_0x32d6c3){_0x42557f[_0x4109('0x3')](_0x52b156,_0x32d6c3);};}function removeListener(_0x181d79,_0x36e917){return function(){SquareProjectEvents['removeListener'](_0x181d79,_0x36e917);};}exports[_0x4109('0x4')]=function(_0x12fdda){for(var _0x40e398=0x0,_0x36c3e9=events[_0x4109('0x5')];_0x40e398<_0x36c3e9;_0x40e398++){var _0x2c34f=events[_0x40e398];var _0x5512e8=createListener(_0x4109('0x6')+_0x2c34f,_0x12fdda);SquareProjectEvents['on'](_0x2c34f,_0x5512e8);}};