dda930e2a423e14602e11d106da07f8bad9356da
[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 _0x34f3=['bluebird','request-promise','path','rimraf','./whatsappAccount.attributes','exports','define','WhatsappAccount','whatsapp_accounts','util','../../config/logger','api','moment'];(function(_0x1895b7,_0x21fbc7){var _0x1aecdc=function(_0x44682a){while(--_0x44682a){_0x1895b7['push'](_0x1895b7['shift']());}};_0x1aecdc(++_0x21fbc7);}(_0x34f3,0x1d0));var _0x334f=function(_0x46d4e9,_0x4c6052){_0x46d4e9=_0x46d4e9-0x0;var _0x293aff=_0x34f3[_0x46d4e9];return _0x293aff;};'use strict';var _=require('lodash');var util=require(_0x334f('0x0'));var logger=require(_0x334f('0x1'))(_0x334f('0x2'));var moment=require(_0x334f('0x3'));var BPromise=require(_0x334f('0x4'));var rp=require(_0x334f('0x5'));var fs=require('fs');var path=require(_0x334f('0x6'));var rimraf=require(_0x334f('0x7'));var config=require('../../config/environment');var attributes=require(_0x334f('0x8'));module[_0x334f('0x9')]=function(_0x193347,_0x502b12){return _0x193347[_0x334f('0xa')](_0x334f('0xb'),attributes,{'tableName':_0x334f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};