e08170c32f2c4e65360ea03d29f02b81c20c6bb4
[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 _0x24ce=['./disposition.attributes','exports','define','tools_dispositions','name_voice','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','util','../../config/logger','api','moment','path'];(function(_0x412b2a,_0x11fb8a){var _0x5872e3=function(_0x202191){while(--_0x202191){_0x412b2a['push'](_0x412b2a['shift']());}};_0x5872e3(++_0x11fb8a);}(_0x24ce,0x1de));var _0xe24c=function(_0x1116ba,_0x25b38f){_0x1116ba=_0x1116ba-0x0;var _0x4318cc=_0x24ce[_0x1116ba];return _0x4318cc;};'use strict';var _=require('lodash');var util=require(_0xe24c('0x0'));var logger=require(_0xe24c('0x1'))(_0xe24c('0x2'));var moment=require(_0xe24c('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xe24c('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xe24c('0x5'));module[_0xe24c('0x6')]=function(_0x6f92e0,_0x1ac59c){return _0x6f92e0[_0xe24c('0x7')]('Disposition',attributes,{'tableName':_0xe24c('0x8'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xe24c('0x9'),'fields':[_0xe24c('0xa'),_0xe24c('0xb')]},{'unique':!![],'name':_0xe24c('0xc'),'fields':[_0xe24c('0xa'),_0xe24c('0xd')]},{'unique':!![],'name':_0xe24c('0xe'),'fields':[_0xe24c('0xa'),_0xe24c('0xf')]},{'unique':!![],'name':_0xe24c('0x10'),'fields':[_0xe24c('0xa'),_0xe24c('0x11')]},{'unique':!![],'name':'name_fax','fields':[_0xe24c('0xa'),'FaxAccountId']},{'unique':!![],'name':_0xe24c('0x12'),'fields':['name',_0xe24c('0x13')]},{'unique':!![],'name':_0xe24c('0x14'),'fields':['name','WhatsappAccountId']}],'timestamps':!![]});};