Built motion from commit (unavailable).|2.5.26
[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 _0xfaf7=['path','rimraf','../../config/environment','./whatsappTransferReport.attributes','exports','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','lodash','util','moment'];(function(_0x40d0e7,_0x4b093c){var _0x4f9bc2=function(_0x381ef1){while(--_0x381ef1){_0x40d0e7['push'](_0x40d0e7['shift']());}};_0x4f9bc2(++_0x4b093c);}(_0xfaf7,0x13c));var _0x7faf=function(_0x45783c,_0x49c56d){_0x45783c=_0x45783c-0x0;var _0x1161da=_0xfaf7[_0x45783c];return _0x1161da;};'use strict';var _=require(_0x7faf('0x0'));var util=require(_0x7faf('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x7faf('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x7faf('0x3'));var rimraf=require(_0x7faf('0x4'));var config=require(_0x7faf('0x5'));var attributes=require(_0x7faf('0x6'));module[_0x7faf('0x7')]=function(_0x2f1608,_0x1efab5){return _0x2f1608['define'](_0x7faf('0x8'),attributes,{'tableName':_0x7faf('0x9'),'paranoid':![],'indexes':[{'name':_0x7faf('0xa'),'fields':['uniqueid']}],'timestamps':!![]});};