807e45d47e751e1df61d13dd296eec451fbb9c5c
[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 _0xc285=['../../config/logger','api','moment','path','rimraf','../../config/environment','./intDeskAccount.attributes','../../components/integrations/configuration','exports','define','DeskAccount','int_desk_accounts','lodash','util'];(function(_0x218cd4,_0x2a3bb3){var _0x77e859=function(_0x22d5cd){while(--_0x22d5cd){_0x218cd4['push'](_0x218cd4['shift']());}};_0x77e859(++_0x2a3bb3);}(_0xc285,0x7c));var _0x5c28=function(_0x585723,_0x25250e){_0x585723=_0x585723-0x0;var _0x54edcf=_0xc285[_0x585723];return _0x54edcf;};'use strict';var _=require(_0x5c28('0x0'));var util=require(_0x5c28('0x1'));var logger=require(_0x5c28('0x2'))(_0x5c28('0x3'));var moment=require(_0x5c28('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x5c28('0x5'));var rimraf=require(_0x5c28('0x6'));var config=require(_0x5c28('0x7'));var attributes=require(_0x5c28('0x8'));var integrations=require(_0x5c28('0x9'));module[_0x5c28('0xa')]=function(_0x2d40f9,_0x326dae){return _0x2d40f9[_0x5c28('0xb')](_0x5c28('0xc'),attributes,{'tableName':_0x5c28('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};