f6cef47e8604dd0015ab1a1634a4e098d0060e74
[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 _0x3d2b=['request-promise','path','../../config/environment','./whatsappAccount.attributes','exports','define','WhatsappAccount','whatsapp_accounts','lodash','moment','bluebird'];(function(_0x2a99e2,_0x1803e4){var _0x23fb5f=function(_0x568ec9){while(--_0x568ec9){_0x2a99e2['push'](_0x2a99e2['shift']());}};_0x23fb5f(++_0x1803e4);}(_0x3d2b,0x13c));var _0xb3d2=function(_0xe58e7c,_0x2de554){_0xe58e7c=_0xe58e7c-0x0;var _0x423cc2=_0x3d2b[_0xe58e7c];return _0x423cc2;};'use strict';var _=require(_0xb3d2('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xb3d2('0x1'));var BPromise=require(_0xb3d2('0x2'));var rp=require(_0xb3d2('0x3'));var fs=require('fs');var path=require(_0xb3d2('0x4'));var rimraf=require('rimraf');var config=require(_0xb3d2('0x5'));var attributes=require(_0xb3d2('0x6'));module[_0xb3d2('0x7')]=function(_0x58bd98,_0x1805fb){return _0x58bd98[_0xb3d2('0x8')](_0xb3d2('0x9'),attributes,{'tableName':_0xb3d2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};