85c80ba29f21ebd5031c2b8ec2fd7c28f96bf4b1
[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 _0xe8ae=['moment','request-promise','rimraf','./whatsappApplication.attributes','exports','define','WhatsappApplication','whatsapp_applications','utf8mb4','utf8mb4_unicode_ci','lodash','api'];(function(_0x332ff9,_0x2a6021){var _0x11ca93=function(_0x144f9a){while(--_0x144f9a){_0x332ff9['push'](_0x332ff9['shift']());}};_0x11ca93(++_0x2a6021);}(_0xe8ae,0x9a));var _0xee8a=function(_0x470543,_0x529f93){_0x470543=_0x470543-0x0;var _0x5feec2=_0xe8ae[_0x470543];return _0x5feec2;};'use strict';var _=require(_0xee8a('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xee8a('0x1'));var moment=require(_0xee8a('0x2'));var BPromise=require('bluebird');var rp=require(_0xee8a('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xee8a('0x4'));var config=require('../../config/environment');var attributes=require(_0xee8a('0x5'));module[_0xee8a('0x6')]=function(_0x2c9501,_0x455900){return _0x2c9501[_0xee8a('0x7')](_0xee8a('0x8'),attributes,{'tableName':_0xee8a('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xee8a('0xa'),'collate':_0xee8a('0xb')});};