Built motion from commit 85328c08.|2.5.50
[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 _0x3bdc=['SquareReport','report_square','uid_pname','uniqueid','leaveAt','../../config/logger','bluebird','request-promise','path','../../config/environment','./squareReport.attributes','exports','define'];(function(_0x13c2ba,_0x1b4b9c){var _0x39483a=function(_0x8b2866){while(--_0x8b2866){_0x13c2ba['push'](_0x13c2ba['shift']());}};_0x39483a(++_0x1b4b9c);}(_0x3bdc,0x14a));var _0xc3bd=function(_0x806e44,_0x2cbb34){_0x806e44=_0x806e44-0x0;var _0x5c29cb=_0x3bdc[_0x806e44];return _0x5c29cb;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xc3bd('0x0'))('api');var moment=require('moment');var BPromise=require(_0xc3bd('0x1'));var rp=require(_0xc3bd('0x2'));var fs=require('fs');var path=require(_0xc3bd('0x3'));var rimraf=require('rimraf');var config=require(_0xc3bd('0x4'));var attributes=require(_0xc3bd('0x5'));module[_0xc3bd('0x6')]=function(_0x5582ed,_0x5dc681){return _0x5582ed[_0xc3bd('0x7')](_0xc3bd('0x8'),attributes,{'tableName':_0xc3bd('0x9'),'paranoid':![],'indexes':[{'name':_0xc3bd('0xa'),'fields':[_0xc3bd('0xb'),'project_name']},{'name':_0xc3bd('0xc'),'fields':[_0xc3bd('0xc')]}],'timestamps':!![]});};