e23e8f092b639b8dbff1bd39930fe627e530f922
[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 _0x8480=['bluebird','path','rimraf','../../config/environment','./squareReport.attributes','exports','SquareReport','uid_pname','project_name','leaveAt','util','../../config/logger','api','moment'];(function(_0x3054be,_0x1bdc8b){var _0x3df150=function(_0x56cfbf){while(--_0x56cfbf){_0x3054be['push'](_0x3054be['shift']());}};_0x3df150(++_0x1bdc8b);}(_0x8480,0x1a0));var _0x0848=function(_0x4a950b,_0x3c4229){_0x4a950b=_0x4a950b-0x0;var _0x2fbf33=_0x8480[_0x4a950b];return _0x2fbf33;};'use strict';var _=require('lodash');var util=require(_0x0848('0x0'));var logger=require(_0x0848('0x1'))(_0x0848('0x2'));var moment=require(_0x0848('0x3'));var BPromise=require(_0x0848('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0848('0x5'));var rimraf=require(_0x0848('0x6'));var config=require(_0x0848('0x7'));var attributes=require(_0x0848('0x8'));module[_0x0848('0x9')]=function(_0x1899fd,_0x2c2695){return _0x1899fd['define'](_0x0848('0xa'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x0848('0xb'),'fields':['uniqueid',_0x0848('0xc')]},{'name':_0x0848('0xd'),'fields':[_0x0848('0xd')]}],'timestamps':!![]});};