485160d3643ad12b4873ceac61b0e7c3a381b009
[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 _0xf585=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./whatsappAccount.attributes','exports','WhatsappAccount','whatsapp_accounts'];(function(_0x3c0e33,_0x4e9903){var _0x48d10c=function(_0x227823){while(--_0x227823){_0x3c0e33['push'](_0x3c0e33['shift']());}};_0x48d10c(++_0x4e9903);}(_0xf585,0x196));var _0x5f58=function(_0x422905,_0x3bce3a){_0x422905=_0x422905-0x0;var _0x33dc6c=_0xf585[_0x422905];return _0x33dc6c;};'use strict';var _=require(_0x5f58('0x0'));var util=require(_0x5f58('0x1'));var logger=require(_0x5f58('0x2'))(_0x5f58('0x3'));var moment=require(_0x5f58('0x4'));var BPromise=require(_0x5f58('0x5'));var rp=require(_0x5f58('0x6'));var fs=require('fs');var path=require(_0x5f58('0x7'));var rimraf=require(_0x5f58('0x8'));var config=require(_0x5f58('0x9'));var attributes=require(_0x5f58('0xa'));module[_0x5f58('0xb')]=function(_0x94b2c7,_0x44a387){return _0x94b2c7['define'](_0x5f58('0xc'),attributes,{'tableName':_0x5f58('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};