Built motion from commit (unavailable).|2.5.7
[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 _0x09cd=['rimraf','../../config/environment','./whatsappApplication.attributes','exports','define','WhatsappApplication','whatsapp_applications','utf8mb4_unicode_ci','lodash','util','moment','request-promise','path'];(function(_0x32c359,_0x19251f){var _0x5a0f2c=function(_0xae5007){while(--_0xae5007){_0x32c359['push'](_0x32c359['shift']());}};_0x5a0f2c(++_0x19251f);}(_0x09cd,0x10c));var _0xd09c=function(_0x141761,_0x3731f6){_0x141761=_0x141761-0x0;var _0x45f2f0=_0x09cd[_0x141761];return _0x45f2f0;};'use strict';var _=require(_0xd09c('0x0'));var util=require(_0xd09c('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xd09c('0x2'));var BPromise=require('bluebird');var rp=require(_0xd09c('0x3'));var fs=require('fs');var path=require(_0xd09c('0x4'));var rimraf=require(_0xd09c('0x5'));var config=require(_0xd09c('0x6'));var attributes=require(_0xd09c('0x7'));module[_0xd09c('0x8')]=function(_0x5aba44,_0x2afcee){return _0x5aba44[_0xd09c('0x9')](_0xd09c('0xa'),attributes,{'tableName':_0xd09c('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0xd09c('0xc')});};