d7f54364a472bbb70ed9f1bac76766252db0a0b7
[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 _0x536a=['./whatsappAccount.attributes','exports','define','WhatsappAccount','whatsapp_accounts','util','../../config/logger','bluebird','path','rimraf','../../config/environment'];(function(_0x2aa316,_0x4191bf){var _0x55a546=function(_0x3211fc){while(--_0x3211fc){_0x2aa316['push'](_0x2aa316['shift']());}};_0x55a546(++_0x4191bf);}(_0x536a,0x102));var _0xa536=function(_0x43d89b,_0x3f7d13){_0x43d89b=_0x43d89b-0x0;var _0x174ffe=_0x536a[_0x43d89b];return _0x174ffe;};'use strict';var _=require('lodash');var util=require(_0xa536('0x0'));var logger=require(_0xa536('0x1'))('api');var moment=require('moment');var BPromise=require(_0xa536('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa536('0x3'));var rimraf=require(_0xa536('0x4'));var config=require(_0xa536('0x5'));var attributes=require(_0xa536('0x6'));module[_0xa536('0x7')]=function(_0xe7be1d,_0xf2ee6a){return _0xe7be1d[_0xa536('0x8')](_0xa536('0x9'),attributes,{'tableName':_0xa536('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};