Built motion from commit (unavailable).|2.5.31
[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 _0x9f88=['util','../../config/logger','moment','bluebird','path','exports','define','WhatsappAccount','whatsapp_accounts'];(function(_0x38d1d5,_0x331bab){var _0xb49e49=function(_0x3a6365){while(--_0x3a6365){_0x38d1d5['push'](_0x38d1d5['shift']());}};_0xb49e49(++_0x331bab);}(_0x9f88,0x120));var _0x89f8=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x9f88[_0x501510];return _0x1e6ee5;};'use strict';var _=require('lodash');var util=require(_0x89f8('0x0'));var logger=require(_0x89f8('0x1'))('api');var moment=require(_0x89f8('0x2'));var BPromise=require(_0x89f8('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x89f8('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./whatsappAccount.attributes');module[_0x89f8('0x5')]=function(_0x2939c2,_0x5c0708){return _0x2939c2[_0x89f8('0x6')](_0x89f8('0x7'),attributes,{'tableName':_0x89f8('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};