Built motion from commit 55091a5c.|2.6.30
[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 _0x0439=['./whatsappAccount.attributes','exports','WhatsappAccount','whatsapp_accounts','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf'];(function(_0x3b0e74,_0x295ca1){var _0x2ebdc1=function(_0x4cd489){while(--_0x4cd489){_0x3b0e74['push'](_0x3b0e74['shift']());}};_0x2ebdc1(++_0x295ca1);}(_0x0439,0xe8));var _0x9043=function(_0xe4ee1e,_0xea8b9b){_0xe4ee1e=_0xe4ee1e-0x0;var _0x22f903=_0x0439[_0xe4ee1e];return _0x22f903;};'use strict';var _=require(_0x9043('0x0'));var util=require(_0x9043('0x1'));var logger=require(_0x9043('0x2'))('api');var moment=require(_0x9043('0x3'));var BPromise=require(_0x9043('0x4'));var rp=require(_0x9043('0x5'));var fs=require('fs');var path=require(_0x9043('0x6'));var rimraf=require(_0x9043('0x7'));var config=require('../../config/environment');var attributes=require(_0x9043('0x8'));module[_0x9043('0x9')]=function(_0x4eea70,_0x3f4c66){return _0x4eea70['define'](_0x9043('0xa'),attributes,{'tableName':_0x9043('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};