1cfef798533a05361abd7780ff07fecb6439893b
[motion2.git] / server / api / disposition / disposition.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 _0x45cd=['Disposition','tools_dispositions','name_voice','name','name_chat','name_mail','name_sms','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./disposition.attributes','exports','define'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x45cd,0xfd));var _0xd45c=function(_0x4764f1,_0x5ed32a){_0x4764f1=_0x4764f1-0x0;var _0x5bae8c=_0x45cd[_0x4764f1];return _0x5bae8c;};'use strict';var _=require(_0xd45c('0x0'));var util=require('util');var logger=require(_0xd45c('0x1'))(_0xd45c('0x2'));var moment=require(_0xd45c('0x3'));var BPromise=require(_0xd45c('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd45c('0x5'));var rimraf=require(_0xd45c('0x6'));var config=require(_0xd45c('0x7'));var attributes=require(_0xd45c('0x8'));module[_0xd45c('0x9')]=function(_0x307756,_0x394b98){return _0x307756[_0xd45c('0xa')](_0xd45c('0xb'),attributes,{'tableName':_0xd45c('0xc'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xd45c('0xd'),'fields':[_0xd45c('0xe'),'ListId']},{'unique':!![],'name':_0xd45c('0xf'),'fields':[_0xd45c('0xe'),'ChatWebsiteId']},{'unique':!![],'name':_0xd45c('0x10'),'fields':[_0xd45c('0xe'),'MailAccountId']},{'unique':!![],'name':_0xd45c('0x11'),'fields':['name','SmsAccountId']},{'unique':!![],'name':_0xd45c('0x12'),'fields':[_0xd45c('0xe'),_0xd45c('0x13')]},{'unique':!![],'name':_0xd45c('0x14'),'fields':[_0xd45c('0xe'),_0xd45c('0x15')]},{'unique':!![],'name':_0xd45c('0x16'),'fields':['name',_0xd45c('0x17')]}],'timestamps':!![]});};