cbc1895ba80b6a7c527679cf4769ff393319e820
[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 _0xc757=['bluebird','request-promise','path','../../config/environment','./whatsappAccount.attributes','exports','WhatsappAccount','whatsapp_accounts','../../config/logger','api'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0xc757,0xa8));var _0x7c75=function(_0x33e499,_0x15e6ff){_0x33e499=_0x33e499-0x0;var _0x2cb4a2=_0xc757[_0x33e499];return _0x2cb4a2;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x7c75('0x0'))(_0x7c75('0x1'));var moment=require('moment');var BPromise=require(_0x7c75('0x2'));var rp=require(_0x7c75('0x3'));var fs=require('fs');var path=require(_0x7c75('0x4'));var rimraf=require('rimraf');var config=require(_0x7c75('0x5'));var attributes=require(_0x7c75('0x6'));module[_0x7c75('0x7')]=function(_0x49d8e2,_0x117267){return _0x49d8e2['define'](_0x7c75('0x8'),attributes,{'tableName':_0x7c75('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};