Built motion from commit 7158bc59.|2.5.42
[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 _0xcbfb=['path','../../config/environment','./whatsappAccount.attributes','define','lodash','../../config/logger','api','bluebird'];(function(_0x108d68,_0x9b39de){var _0x11476a=function(_0x21cc20){while(--_0x21cc20){_0x108d68['push'](_0x108d68['shift']());}};_0x11476a(++_0x9b39de);}(_0xcbfb,0xac));var _0xbcbf=function(_0x48ea3f,_0x52aada){_0x48ea3f=_0x48ea3f-0x0;var _0x452f07=_0xcbfb[_0x48ea3f];return _0x452f07;};'use strict';var _=require(_0xbcbf('0x0'));var util=require('util');var logger=require(_0xbcbf('0x1'))(_0xbcbf('0x2'));var moment=require('moment');var BPromise=require(_0xbcbf('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbcbf('0x4'));var rimraf=require('rimraf');var config=require(_0xbcbf('0x5'));var attributes=require(_0xbcbf('0x6'));module['exports']=function(_0x354913,_0x313ce6){return _0x354913[_0xbcbf('0x7')]('WhatsappAccount',attributes,{'tableName':'whatsapp_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};