Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / squareReport / squareReport.model.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 _0xf88a=['exports','define','SquareReport','report_square','uid_pname','uniqueid','leaveAt','util','api','moment','bluebird','request-promise','rimraf','../../config/environment','./squareReport.attributes'];(function(_0x12c927,_0x2e48f9){var _0x4aa1b0=function(_0x392663){while(--_0x392663){_0x12c927['push'](_0x12c927['shift']());}};_0x4aa1b0(++_0x2e48f9);}(_0xf88a,0x142));var _0xaf88=function(_0x415e13,_0x19623a){_0x415e13=_0x415e13-0x0;var _0xa3a89=_0xf88a[_0x415e13];return _0xa3a89;};'use strict';var _=require('lodash');var util=require(_0xaf88('0x0'));var logger=require('../../config/logger')(_0xaf88('0x1'));var moment=require(_0xaf88('0x2'));var BPromise=require(_0xaf88('0x3'));var rp=require(_0xaf88('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xaf88('0x5'));var config=require(_0xaf88('0x6'));var attributes=require(_0xaf88('0x7'));module[_0xaf88('0x8')]=function(_0x202762,_0x3568ad){return _0x202762[_0xaf88('0x9')](_0xaf88('0xa'),attributes,{'tableName':_0xaf88('0xb'),'paranoid':![],'indexes':[{'name':_0xaf88('0xc'),'fields':[_0xaf88('0xd'),'project_name']},{'name':_0xaf88('0xe'),'fields':[_0xaf88('0xe')]}],'timestamps':!![]});};