Built motion from commit 1fd437e9.|2.6.19
[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 _0x2f44=['exports','WhatsappAccount','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x5cab7e,_0x464e20){var _0x35c71f=function(_0x5455e6){while(--_0x5455e6){_0x5cab7e['push'](_0x5cab7e['shift']());}};_0x35c71f(++_0x464e20);}(_0x2f44,0x19a));var _0x42f4=function(_0x3d6135,_0x256136){_0x3d6135=_0x3d6135-0x0;var _0x16f3c1=_0x2f44[_0x3d6135];return _0x16f3c1;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x42f4('0x0'))(_0x42f4('0x1'));var moment=require('moment');var BPromise=require(_0x42f4('0x2'));var rp=require(_0x42f4('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x42f4('0x4'));var config=require(_0x42f4('0x5'));var attributes=require('./whatsappAccount.attributes');module[_0x42f4('0x6')]=function(_0x318886,_0x3bab68){return _0x318886['define'](_0x42f4('0x7'),attributes,{'tableName':'whatsapp_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};