Built motion from commit (unavailable).|2.5.11
[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 _0xb1b4=['./whatsappApplication.attributes','exports','define','WhatsappApplication','whatsapp_applications','utf8mb4','utf8mb4_unicode_ci','util','api','moment','bluebird','rimraf'];(function(_0x2d4926,_0x43a525){var _0x274c34=function(_0x21db2c){while(--_0x21db2c){_0x2d4926['push'](_0x2d4926['shift']());}};_0x274c34(++_0x43a525);}(_0xb1b4,0xc7));var _0x4b1b=function(_0x4c836d,_0x144891){_0x4c836d=_0x4c836d-0x0;var _0x299319=_0xb1b4[_0x4c836d];return _0x299319;};'use strict';var _=require('lodash');var util=require(_0x4b1b('0x0'));var logger=require('../../config/logger')(_0x4b1b('0x1'));var moment=require(_0x4b1b('0x2'));var BPromise=require(_0x4b1b('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x4b1b('0x4'));var config=require('../../config/environment');var attributes=require(_0x4b1b('0x5'));module[_0x4b1b('0x6')]=function(_0x55fa70,_0x2967e3){return _0x55fa70[_0x4b1b('0x7')](_0x4b1b('0x8'),attributes,{'tableName':_0x4b1b('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4b1b('0xa'),'collate':_0x4b1b('0xb')});};