6016bf3be00b6e6caf9035f3ed5a27cdffa18e69
[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 _0x43f5=['exports','WhatsappAccount','whatsapp_accounts','lodash','util','../../config/logger','api','./whatsappAccount.attributes'];(function(_0x50a0c2,_0x4befab){var _0x5ebadd=function(_0x3a3342){while(--_0x3a3342){_0x50a0c2['push'](_0x50a0c2['shift']());}};_0x5ebadd(++_0x4befab);}(_0x43f5,0x1cb));var _0x543f=function(_0x413feb,_0x10477f){_0x413feb=_0x413feb-0x0;var _0x40ee88=_0x43f5[_0x413feb];return _0x40ee88;};'use strict';var _=require(_0x543f('0x0'));var util=require(_0x543f('0x1'));var logger=require(_0x543f('0x2'))(_0x543f('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x543f('0x4'));module[_0x543f('0x5')]=function(_0x4b8884,_0x4a7ee0){return _0x4b8884['define'](_0x543f('0x6'),attributes,{'tableName':_0x543f('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};