2ed3dbf69715d6e50ed27224c33ab40edb39c84d
[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 _0xb5ce=['whatsapp_accounts','moment','bluebird','request-promise','path','rimraf','../../config/environment','./whatsappAccount.attributes','exports','WhatsappAccount'];(function(_0x44a264,_0x39f768){var _0x2f0024=function(_0x3a825e){while(--_0x3a825e){_0x44a264['push'](_0x44a264['shift']());}};_0x2f0024(++_0x39f768);}(_0xb5ce,0x173));var _0xeb5c=function(_0x2d335d,_0x57b4da){_0x2d335d=_0x2d335d-0x0;var _0x475ef5=_0xb5ce[_0x2d335d];return _0x475ef5;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xeb5c('0x0'));var BPromise=require(_0xeb5c('0x1'));var rp=require(_0xeb5c('0x2'));var fs=require('fs');var path=require(_0xeb5c('0x3'));var rimraf=require(_0xeb5c('0x4'));var config=require(_0xeb5c('0x5'));var attributes=require(_0xeb5c('0x6'));module[_0xeb5c('0x7')]=function(_0x5411c0,_0x31dca6){return _0x5411c0['define'](_0xeb5c('0x8'),attributes,{'tableName':_0xeb5c('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};