Built motion from commit c116dc8b.|2.6.30
[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 _0xd46f=['path','rimraf','../../config/environment','./disposition.attributes','exports','define','Disposition','tools_dispositions','name_voice','name','name_chat','ChatWebsiteId','name_mail','SmsAccountId','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','lodash','util','../../config/logger','moment','bluebird'];(function(_0x334b04,_0x263d47){var _0x105a97=function(_0x45e860){while(--_0x45e860){_0x334b04['push'](_0x334b04['shift']());}};_0x105a97(++_0x263d47);}(_0xd46f,0x1de));var _0xfd46=function(_0x324928,_0x53563b){_0x324928=_0x324928-0x0;var _0x5dc333=_0xd46f[_0x324928];return _0x5dc333;};'use strict';var _=require(_0xfd46('0x0'));var util=require(_0xfd46('0x1'));var logger=require(_0xfd46('0x2'))('api');var moment=require(_0xfd46('0x3'));var BPromise=require(_0xfd46('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xfd46('0x5'));var rimraf=require(_0xfd46('0x6'));var config=require(_0xfd46('0x7'));var attributes=require(_0xfd46('0x8'));module[_0xfd46('0x9')]=function(_0x35e7ae,_0x25e7c8){return _0x35e7ae[_0xfd46('0xa')](_0xfd46('0xb'),attributes,{'tableName':_0xfd46('0xc'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xfd46('0xd'),'fields':[_0xfd46('0xe'),'ListId']},{'unique':!![],'name':_0xfd46('0xf'),'fields':[_0xfd46('0xe'),_0xfd46('0x10')]},{'unique':!![],'name':_0xfd46('0x11'),'fields':[_0xfd46('0xe'),'MailAccountId']},{'unique':!![],'name':'name_sms','fields':[_0xfd46('0xe'),_0xfd46('0x12')]},{'unique':!![],'name':'name_fax','fields':['name',_0xfd46('0x13')]},{'unique':!![],'name':_0xfd46('0x14'),'fields':[_0xfd46('0xe'),_0xfd46('0x15')]},{'unique':!![],'name':_0xfd46('0x16'),'fields':[_0xfd46('0xe'),'WhatsappAccountId']}],'timestamps':!![]});};