Built motion from commit ffdca78c.|2.6.24
[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 _0x163e=['define','WhatsappAccount','whatsapp_accounts','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./whatsappAccount.attributes','exports'];(function(_0xeff561,_0x58f0fb){var _0x1eeafd=function(_0x2cb4b2){while(--_0x2cb4b2){_0xeff561['push'](_0xeff561['shift']());}};_0x1eeafd(++_0x58f0fb);}(_0x163e,0x16f));var _0xe163=function(_0x1dcdc1,_0x2fdd77){_0x1dcdc1=_0x1dcdc1-0x0;var _0x24a48c=_0x163e[_0x1dcdc1];return _0x24a48c;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xe163('0x0'))(_0xe163('0x1'));var moment=require(_0xe163('0x2'));var BPromise=require(_0xe163('0x3'));var rp=require(_0xe163('0x4'));var fs=require('fs');var path=require(_0xe163('0x5'));var rimraf=require(_0xe163('0x6'));var config=require(_0xe163('0x7'));var attributes=require(_0xe163('0x8'));module[_0xe163('0x9')]=function(_0x48f99a,_0x24bbbb){return _0x48f99a[_0xe163('0xa')](_0xe163('0xb'),attributes,{'tableName':_0xe163('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};