2b26b3120cfa7f41f4fc4377bcf4dcfff129e97f
[motion2.git] / server / api / whatsappApplication / whatsappApplication.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 _0x131c=['moment','bluebird','request-promise','path','exports','whatsapp_applications','lodash'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x131c,0x19c));var _0xc131=function(_0x2d5ea2,_0x1b319e){_0x2d5ea2=_0x2d5ea2-0x0;var _0x3e2ecb=_0x131c[_0x2d5ea2];return _0x3e2ecb;};'use strict';var _=require(_0xc131('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xc131('0x1'));var BPromise=require(_0xc131('0x2'));var rp=require(_0xc131('0x3'));var fs=require('fs');var path=require(_0xc131('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./whatsappApplication.attributes');module[_0xc131('0x5')]=function(_0x405c79,_0x275b4e){return _0x405c79['define']('WhatsappApplication',attributes,{'tableName':_0xc131('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});};