f15b016665a154a78f6fda741db3026e99385195
[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 _0x69da=['request-promise','path','rimraf','../../config/environment','./intDeskAccount.attributes','DeskAccount','int_desk_accounts','util','api','bluebird'];(function(_0xa196c3,_0x54f464){var _0x540d1b=function(_0x1be5d8){while(--_0x1be5d8){_0xa196c3['push'](_0xa196c3['shift']());}};_0x540d1b(++_0x54f464);}(_0x69da,0x1ab));var _0xa69d=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x69da[_0x14add3];return _0x4a174f;};'use strict';var _=require('lodash');var util=require(_0xa69d('0x0'));var logger=require('../../config/logger')(_0xa69d('0x1'));var moment=require('moment');var BPromise=require(_0xa69d('0x2'));var rp=require(_0xa69d('0x3'));var fs=require('fs');var path=require(_0xa69d('0x4'));var rimraf=require(_0xa69d('0x5'));var config=require(_0xa69d('0x6'));var attributes=require(_0xa69d('0x7'));var integrations=require('../../components/integrations/configuration');module['exports']=function(_0x5a5dbc,_0x477eeb){return _0x5a5dbc['define'](_0xa69d('0x8'),attributes,{'tableName':_0xa69d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};