77250a1ebcb3f74061b078e8b39d27c479062697
[motion2.git] / server / api / whatsappAccount / whatsappAccount.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 _0xea7f=['rimraf','../../config/environment','./whatsappAccount.attributes','define','WhatsappAccount','whatsapp_accounts','lodash','api','request-promise','path'];(function(_0x2a3f87,_0x1599bd){var _0x142569=function(_0x10ee60){while(--_0x10ee60){_0x2a3f87['push'](_0x2a3f87['shift']());}};_0x142569(++_0x1599bd);}(_0xea7f,0x1f0));var _0xfea7=function(_0x5c25ac,_0xe4534d){_0x5c25ac=_0x5c25ac-0x0;var _0x557e18=_0xea7f[_0x5c25ac];return _0x557e18;};'use strict';var _=require(_0xfea7('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xfea7('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xfea7('0x2'));var fs=require('fs');var path=require(_0xfea7('0x3'));var rimraf=require(_0xfea7('0x4'));var config=require(_0xfea7('0x5'));var attributes=require(_0xfea7('0x6'));module['exports']=function(_0x23f311,_0x111e20){return _0x23f311[_0xfea7('0x7')](_0xfea7('0x8'),attributes,{'tableName':_0xfea7('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};