028e03650d1edc20a39298dda4969cf47d6d0466
[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 _0xa8d7=['bluebird','request-promise','rimraf','./whatsappAccount.attributes','define','WhatsappAccount','whatsapp_accounts','lodash','../../config/logger','api'];(function(_0x15cce1,_0x23fae1){var _0x2579f2=function(_0x28c481){while(--_0x28c481){_0x15cce1['push'](_0x15cce1['shift']());}};_0x2579f2(++_0x23fae1);}(_0xa8d7,0x147));var _0x7a8d=function(_0x4f6d08,_0x1b3dd0){_0x4f6d08=_0x4f6d08-0x0;var _0x53a9c6=_0xa8d7[_0x4f6d08];return _0x53a9c6;};'use strict';var _=require(_0x7a8d('0x0'));var util=require('util');var logger=require(_0x7a8d('0x1'))(_0x7a8d('0x2'));var moment=require('moment');var BPromise=require(_0x7a8d('0x3'));var rp=require(_0x7a8d('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7a8d('0x5'));var config=require('../../config/environment');var attributes=require(_0x7a8d('0x6'));module['exports']=function(_0x36669b,_0xf09d18){return _0x36669b[_0x7a8d('0x7')](_0x7a8d('0x8'),attributes,{'tableName':_0x7a8d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};