d501a79568bad1d90477043ad646f131d5b903a2
[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 _0x616e=['define','SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','api','moment','request-promise','rimraf','./squareReport.attributes'];(function(_0x55f8b4,_0x43f30d){var _0x2475f9=function(_0xdd6f4a){while(--_0xdd6f4a){_0x55f8b4['push'](_0x55f8b4['shift']());}};_0x2475f9(++_0x43f30d);}(_0x616e,0x19d));var _0xe616=function(_0x40927b,_0xf9b0a0){_0x40927b=_0x40927b-0x0;var _0x2635e8=_0x616e[_0x40927b];return _0x2635e8;};'use strict';var _=require(_0xe616('0x0'));var util=require(_0xe616('0x1'));var logger=require('../../config/logger')(_0xe616('0x2'));var moment=require(_0xe616('0x3'));var BPromise=require('bluebird');var rp=require(_0xe616('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe616('0x5'));var config=require('../../config/environment');var attributes=require(_0xe616('0x6'));module['exports']=function(_0x6da7d1,_0x444534){return _0x6da7d1[_0xe616('0x7')](_0xe616('0x8'),attributes,{'tableName':_0xe616('0x9'),'paranoid':![],'indexes':[{'name':_0xe616('0xa'),'fields':[_0xe616('0xb'),_0xe616('0xc')]},{'name':_0xe616('0xd'),'fields':[_0xe616('0xd')]}],'timestamps':!![]});};