Built motion from commit efa66e19.|2.6.22
[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 _0xfd4c=['request-promise','path','../../config/environment','./disposition.attributes','exports','define','Disposition','tools_dispositions','name_voice','ListId','name_chat','name','ChatWebsiteId','MailAccountId','name_sms','SmsAccountId','name_fax','name_openchannel','WhatsappAccountId','lodash','util','api','moment','bluebird'];(function(_0x435ded,_0x1b9602){var _0x4635ec=function(_0xd4c6ec){while(--_0xd4c6ec){_0x435ded['push'](_0x435ded['shift']());}};_0x4635ec(++_0x1b9602);}(_0xfd4c,0x17b));var _0xcfd4=function(_0x5b4868,_0x5bf76e){_0x5b4868=_0x5b4868-0x0;var _0x98aff4=_0xfd4c[_0x5b4868];return _0x98aff4;};'use strict';var _=require(_0xcfd4('0x0'));var util=require(_0xcfd4('0x1'));var logger=require('../../config/logger')(_0xcfd4('0x2'));var moment=require(_0xcfd4('0x3'));var BPromise=require(_0xcfd4('0x4'));var rp=require(_0xcfd4('0x5'));var fs=require('fs');var path=require(_0xcfd4('0x6'));var rimraf=require('rimraf');var config=require(_0xcfd4('0x7'));var attributes=require(_0xcfd4('0x8'));module[_0xcfd4('0x9')]=function(_0xd1c181,_0x2fddeb){return _0xd1c181[_0xcfd4('0xa')](_0xcfd4('0xb'),attributes,{'tableName':_0xcfd4('0xc'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xcfd4('0xd'),'fields':['name',_0xcfd4('0xe')]},{'unique':!![],'name':_0xcfd4('0xf'),'fields':[_0xcfd4('0x10'),_0xcfd4('0x11')]},{'unique':!![],'name':'name_mail','fields':['name',_0xcfd4('0x12')]},{'unique':!![],'name':_0xcfd4('0x13'),'fields':[_0xcfd4('0x10'),_0xcfd4('0x14')]},{'unique':!![],'name':_0xcfd4('0x15'),'fields':['name','FaxAccountId']},{'unique':!![],'name':_0xcfd4('0x16'),'fields':['name','OpenchannelAccountId']},{'unique':!![],'name':'name_whatsapp','fields':[_0xcfd4('0x10'),_0xcfd4('0x17')]}],'timestamps':!![]});};