056fe9d8c193071e050eb59da6ef1bf13c5d4417
[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 _0x92ed=['leaveAt','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid','project_name'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0x92ed,0x19f));var _0xd92e=function(_0x5ee7e6,_0x505de0){_0x5ee7e6=_0x5ee7e6-0x0;var _0xccbe58=_0x92ed[_0x5ee7e6];return _0xccbe58;};'use strict';var _=require(_0xd92e('0x0'));var util=require(_0xd92e('0x1'));var logger=require(_0xd92e('0x2'))(_0xd92e('0x3'));var moment=require('moment');var BPromise=require(_0xd92e('0x4'));var rp=require(_0xd92e('0x5'));var fs=require('fs');var path=require(_0xd92e('0x6'));var rimraf=require(_0xd92e('0x7'));var config=require(_0xd92e('0x8'));var attributes=require(_0xd92e('0x9'));module[_0xd92e('0xa')]=function(_0x26f6b4,_0x1089fa){return _0x26f6b4[_0xd92e('0xb')](_0xd92e('0xc'),attributes,{'tableName':_0xd92e('0xd'),'paranoid':![],'indexes':[{'name':_0xd92e('0xe'),'fields':[_0xd92e('0xf'),_0xd92e('0x10')]},{'name':_0xd92e('0x11'),'fields':[_0xd92e('0x11')]}],'timestamps':!![]});};