Built motion from commit (unavailable).|2.5.23
[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 _0x933b=['../../config/environment','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','util','../../config/logger','api','moment','request-promise','path','rimraf'];(function(_0x32bff8,_0x3c5339){var _0x30b625=function(_0x6c0faa){while(--_0x6c0faa){_0x32bff8['push'](_0x32bff8['shift']());}};_0x30b625(++_0x3c5339);}(_0x933b,0x117));var _0xb933=function(_0x80f112,_0x5cbb6a){_0x80f112=_0x80f112-0x0;var _0x1d10c4=_0x933b[_0x80f112];return _0x1d10c4;};'use strict';var _=require('lodash');var util=require(_0xb933('0x0'));var logger=require(_0xb933('0x1'))(_0xb933('0x2'));var moment=require(_0xb933('0x3'));var BPromise=require('bluebird');var rp=require(_0xb933('0x4'));var fs=require('fs');var path=require(_0xb933('0x5'));var rimraf=require(_0xb933('0x6'));var config=require(_0xb933('0x7'));var attributes=require('./whatsappTransferReport.attributes');module[_0xb933('0x8')]=function(_0x5dd450,_0x5e847c){return _0x5dd450[_0xb933('0x9')](_0xb933('0xa'),attributes,{'tableName':_0xb933('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xb933('0xc')]}],'timestamps':!![]});};