Built motion from commit 19a84241.|2.5.34
[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 _0xfa8e=['../../config/environment','exports','define','lodash','util','../../config/logger','moment','request-promise','rimraf'];(function(_0x59118a,_0xb6849e){var _0x1600df=function(_0x1a2f00){while(--_0x1a2f00){_0x59118a['push'](_0x59118a['shift']());}};_0x1600df(++_0xb6849e);}(_0xfa8e,0xf6));var _0xefa8=function(_0x73bb6d,_0x4f37ff){_0x73bb6d=_0x73bb6d-0x0;var _0x3ab429=_0xfa8e[_0x73bb6d];return _0x3ab429;};'use strict';var _=require(_0xefa8('0x0'));var util=require(_0xefa8('0x1'));var logger=require(_0xefa8('0x2'))('api');var moment=require(_0xefa8('0x3'));var BPromise=require('bluebird');var rp=require(_0xefa8('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xefa8('0x5'));var config=require(_0xefa8('0x6'));var attributes=require('./whatsappAccount.attributes');module[_0xefa8('0x7')]=function(_0xf757e,_0x31e603){return _0xf757e[_0xefa8('0x8')]('WhatsappAccount',attributes,{'tableName':'whatsapp_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};