3c6d54ab1f6171626aa12debbd06b87b5da47dad
[motion2.git] / server / api / intDeskAccount / intDeskAccount.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 _0xa263=['moment','request-promise','path','rimraf','../../config/environment','./intDeskAccount.attributes','../../components/integrations/configuration','exports','define','DeskAccount','int_desk_accounts','util','../../config/logger','api'];(function(_0xc6857,_0x1ddbcc){var _0x2a650d=function(_0x1f93bf){while(--_0x1f93bf){_0xc6857['push'](_0xc6857['shift']());}};_0x2a650d(++_0x1ddbcc);}(_0xa263,0x1af));var _0x3a26=function(_0x33ae4d,_0x453318){_0x33ae4d=_0x33ae4d-0x0;var _0x1801d6=_0xa263[_0x33ae4d];return _0x1801d6;};'use strict';var _=require('lodash');var util=require(_0x3a26('0x0'));var logger=require(_0x3a26('0x1'))(_0x3a26('0x2'));var moment=require(_0x3a26('0x3'));var BPromise=require('bluebird');var rp=require(_0x3a26('0x4'));var fs=require('fs');var path=require(_0x3a26('0x5'));var rimraf=require(_0x3a26('0x6'));var config=require(_0x3a26('0x7'));var attributes=require(_0x3a26('0x8'));var integrations=require(_0x3a26('0x9'));module[_0x3a26('0xa')]=function(_0x42b379,_0x6a7391){return _0x42b379[_0x3a26('0xb')](_0x3a26('0xc'),attributes,{'tableName':_0x3a26('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};