Built motion from commit 43538d75.|2.5.35
[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 _0x042e=['../../config/environment','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','rimraf'];(function(_0x4e9fed,_0x19f4f3){var _0x5c8cc0=function(_0x36116c){while(--_0x36116c){_0x4e9fed['push'](_0x4e9fed['shift']());}};_0x5c8cc0(++_0x19f4f3);}(_0x042e,0xfd));var _0xe042=function(_0x414ef0,_0x4ac90b){_0x414ef0=_0x414ef0-0x0;var _0x6cf46c=_0x042e[_0x414ef0];return _0x6cf46c;};'use strict';var _=require(_0xe042('0x0'));var util=require(_0xe042('0x1'));var logger=require(_0xe042('0x2'))(_0xe042('0x3'));var moment=require(_0xe042('0x4'));var BPromise=require(_0xe042('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xe042('0x6'));var config=require(_0xe042('0x7'));var attributes=require('./whatsappTransferReport.attributes');module[_0xe042('0x8')]=function(_0x2530e5,_0x52ddc6){return _0x2530e5[_0xe042('0x9')](_0xe042('0xa'),attributes,{'tableName':_0xe042('0xb'),'paranoid':![],'indexes':[{'name':_0xe042('0xc'),'fields':[_0xe042('0xc')]}],'timestamps':!![]});};