27d92d1714173b6f8e197fc8c0dbf2157441ee22
[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 _0x20e3=['../../components/integrations/configuration','exports','define','DeskAccount','int_desk_accounts','lodash','util','api','moment','bluebird','rimraf'];(function(_0x12f9d9,_0x3019ad){var _0x1d34e1=function(_0x3ae432){while(--_0x3ae432){_0x12f9d9['push'](_0x12f9d9['shift']());}};_0x1d34e1(++_0x3019ad);}(_0x20e3,0x1d3));var _0x320e=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x20e3[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0x320e('0x0'));var util=require(_0x320e('0x1'));var logger=require('../../config/logger')(_0x320e('0x2'));var moment=require(_0x320e('0x3'));var BPromise=require(_0x320e('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x320e('0x5'));var config=require('../../config/environment');var attributes=require('./intDeskAccount.attributes');var integrations=require(_0x320e('0x6'));module[_0x320e('0x7')]=function(_0x261dc2,_0x3eeeb2){return _0x261dc2[_0x320e('0x8')](_0x320e('0x9'),attributes,{'tableName':_0x320e('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};