Built motion from commit f7863d46.|2.5.41
[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 _0x4fe3=['lodash','util','api','bluebird','request-promise','path','rimraf','../../config/environment','../../components/integrations/configuration','exports','define','DeskAccount','int_desk_accounts'];(function(_0x183a04,_0x502f34){var _0x29c2c0=function(_0x5b1fa1){while(--_0x5b1fa1){_0x183a04['push'](_0x183a04['shift']());}};_0x29c2c0(++_0x502f34);}(_0x4fe3,0x179));var _0x34fe=function(_0x24832d,_0x16d508){_0x24832d=_0x24832d-0x0;var _0x1aa617=_0x4fe3[_0x24832d];return _0x1aa617;};'use strict';var _=require(_0x34fe('0x0'));var util=require(_0x34fe('0x1'));var logger=require('../../config/logger')(_0x34fe('0x2'));var moment=require('moment');var BPromise=require(_0x34fe('0x3'));var rp=require(_0x34fe('0x4'));var fs=require('fs');var path=require(_0x34fe('0x5'));var rimraf=require(_0x34fe('0x6'));var config=require(_0x34fe('0x7'));var attributes=require('./intDeskAccount.attributes');var integrations=require(_0x34fe('0x8'));module[_0x34fe('0x9')]=function(_0x3d5a12,_0x5e720f){return _0x3d5a12[_0x34fe('0xa')](_0x34fe('0xb'),attributes,{'tableName':_0x34fe('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};