Built motion from commit (unavailable).|2.5.13
[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 _0x6ab2=['whatsapp_accounts','util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./whatsappAccount.attributes','exports','define','WhatsappAccount'];(function(_0x2c4c15,_0x49245d){var _0x4499d7=function(_0x1ed911){while(--_0x1ed911){_0x2c4c15['push'](_0x2c4c15['shift']());}};_0x4499d7(++_0x49245d);}(_0x6ab2,0x1c9));var _0x26ab=function(_0x3eb0fa,_0x2d3b51){_0x3eb0fa=_0x3eb0fa-0x0;var _0x4e43d2=_0x6ab2[_0x3eb0fa];return _0x4e43d2;};'use strict';var _=require('lodash');var util=require(_0x26ab('0x0'));var logger=require(_0x26ab('0x1'))('api');var moment=require('moment');var BPromise=require(_0x26ab('0x2'));var rp=require(_0x26ab('0x3'));var fs=require('fs');var path=require(_0x26ab('0x4'));var rimraf=require(_0x26ab('0x5'));var config=require(_0x26ab('0x6'));var attributes=require(_0x26ab('0x7'));module[_0x26ab('0x8')]=function(_0x507c64,_0x4c75ed){return _0x507c64[_0x26ab('0x9')](_0x26ab('0xa'),attributes,{'tableName':_0x26ab('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};