3183477b536889c34f1dc00f552f4f42d6d909cd
[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 _0x0a91=['whatsapp_accounts','lodash','../../config/logger','api','moment','bluebird','path','../../config/environment','./whatsappAccount.attributes','exports','define','WhatsappAccount'];(function(_0x3c9817,_0x3a5e94){var _0x57b25b=function(_0x37abfc){while(--_0x37abfc){_0x3c9817['push'](_0x3c9817['shift']());}};_0x57b25b(++_0x3a5e94);}(_0x0a91,0x12d));var _0x10a9=function(_0x302b5e,_0x564a8e){_0x302b5e=_0x302b5e-0x0;var _0x523ab7=_0x0a91[_0x302b5e];return _0x523ab7;};'use strict';var _=require(_0x10a9('0x0'));var util=require('util');var logger=require(_0x10a9('0x1'))(_0x10a9('0x2'));var moment=require(_0x10a9('0x3'));var BPromise=require(_0x10a9('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x10a9('0x5'));var rimraf=require('rimraf');var config=require(_0x10a9('0x6'));var attributes=require(_0x10a9('0x7'));module[_0x10a9('0x8')]=function(_0x12d48d,_0x379fd6){return _0x12d48d[_0x10a9('0x9')](_0x10a9('0xa'),attributes,{'tableName':_0x10a9('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};