Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.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 _0x52e5=['request-promise','path','rimraf','../../config/environment','./whatsappTransferReport.attributes','define','WhatsappTransferReport','report_whatsapp_transfer','util','api'];(function(_0x4773cd,_0x118f7b){var _0x2dc3b4=function(_0x4e8213){while(--_0x4e8213){_0x4773cd['push'](_0x4773cd['shift']());}};_0x2dc3b4(++_0x118f7b);}(_0x52e5,0xa8));var _0x552e=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0x52e5[_0x502c7d];return _0x30b7ed;};'use strict';var _=require('lodash');var util=require(_0x552e('0x0'));var logger=require('../../config/logger')(_0x552e('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x552e('0x2'));var fs=require('fs');var path=require(_0x552e('0x3'));var rimraf=require(_0x552e('0x4'));var config=require(_0x552e('0x5'));var attributes=require(_0x552e('0x6'));module['exports']=function(_0x4d2f35,_0x4fd5c5){return _0x4d2f35[_0x552e('0x7')](_0x552e('0x8'),attributes,{'tableName':_0x552e('0x9'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};